|
| cartesian_rectangle (const cartesian_point &vertex_1, const cartesian_point &vertex_2) |
|
| cartesian_rectangle (double x_1=0, double y_1=0, double x_2=0, double y_2=0) |
|
| cartesian_rectangle (const rectangle< double > &rect) |
|
| rectangle (const point< double > &vertex_1, const point< double > &vertex_2) |
|
| rectangle (double x_1=0, double y_1=0, double x_2=0, double y_2=0) |
|
double | height () const |
|
double | width () const |
|
rectangle | order () const |
| Re-orders the vertices of the line to be increasing. More...
|
|
point< double > | top_left () const |
|
point< double > | bottom_left () const |
|
point< double > | top_right () const |
|
point< double > | bottom_right () const |
| returns the appropriate point as represented by our rectangle. More...
|
|
double | minimum_x () const |
| Return the smallest x from the points in the rectangle. More...
|
|
double | minimum_y () const |
| Return the smallest y from the points in the rectangle. More...
|
|
double | maximum_x () const |
| Return the largest x from the points in the rectangle. More...
|
|
double | maximum_y () const |
| Return the largest y from the points in the rectangle. More...
|
|
point< double > | center () const |
| Returns the point at the center of the rectangle. More...
|
|
bool | inside (const point< double > &to_check) const |
| Returns true if ‘to_check’ is inside ‘this’ rectangle. More...
|
|
bool | operator== (const rectangle &to_compare) const |
| Returns true if ‘to_compare’ has vertices equal to ‘this’. More...
|
|
rectangle | operator+ (const point< double > &to_add) const |
| Returns the rectangle resulting from adding a point to its vertices. More...
|
|
rectangle | operator- (const point< double > &to_subtract) const |
| Returns the rectangle resulting from subtracting "to_subtract". More...
|
|
rectangle & | operator+= (const point< double > &to_add) |
| Adds the point "to_add" to our vertices. More...
|
|
rectangle & | operator-= (const point< double > &to_subtract) |
| Subtracts the point "to_add" to our vertices. More...
|
|
void | encompass (const rectangle &to_adjust_to) |
| Finds the largest dimension needed to contain all rectangles passed in. More...
|
|
bool | intersect (const rectangle &r2) const |
| Returns true if ‘this’ & ‘r2’ cover any common points. More...
|
|
bool | disjoint (const rectangle &r2) const |
| Returns true if ‘this’ & ‘r2’ have mutually exclusive extents. More...
|
|
bool | join_intersecting (const rectangle &r2, rectangle &result) |
| Sets "result" to encompass this and "r2" if they intersect. More...
|
|
bool | intersection (const rectangle &r2, rectangle &result) |
| Sets "result" to the intersection of this and "r2". More...
|
|
basis::astring | text_form () const |
| Prints out the contents of the rectangle. More...
|
|
bool | from_text (const basis::astring &text) |
| Returns true if the "text" is parsed into this rectangle. More...
|
|
point< double > | vertex_1 () const |
|
void | vertex_1 (const point< double > &to_set) |
|
point< double > | vertex_2 () const |
|
void | vertex_2 (const point< double > &to_set) |
|
virtual int | packed_size () const |
| Estimates the space needed for the packed structure. More...
|
|
virtual void | pack (basis::byte_array &packed_form) const |
| Creates a packed form of the packable object in "packed_form". More...
|
|
virtual bool | unpack (basis::byte_array &packed_form) |
| Restores the packable from the "packed_form". More...
|
|
Provides a geometric rectangle that use double floating points numbers.
Definition at line 58 of file cartesian_objects.h.