|
feisty meow concerns codebase 2.140
|
Provides a geometric rectangle that use double floating points numbers. More...
#include <cartesian_objects.h>


Public Member Functions | |
| 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) | |
Public Member Functions inherited from geometric::rectangle< double > | |
| 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. | |
| 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. | |
| double | minimum_x () const |
| Return the smallest x from the points in the rectangle. | |
| double | minimum_y () const |
| Return the smallest y from the points in the rectangle. | |
| double | maximum_x () const |
| Return the largest x from the points in the rectangle. | |
| double | maximum_y () const |
| Return the largest y from the points in the rectangle. | |
| point< double > | center () const |
| Returns the point at the center of the rectangle. | |
| bool | inside (const point< double > &to_check) const |
| Returns true if ‘to_check’ is inside ‘this’ rectangle. | |
| bool | operator== (const rectangle &to_compare) const |
| Returns true if ‘to_compare’ has vertices equal to ‘this’. | |
| rectangle | operator+ (const point< double > &to_add) const |
| Returns the rectangle resulting from adding a point to its vertices. | |
| rectangle | operator- (const point< double > &to_subtract) const |
| Returns the rectangle resulting from subtracting "to_subtract". | |
| rectangle & | operator+= (const point< double > &to_add) |
| Adds the point "to_add" to our vertices. | |
| rectangle & | operator-= (const point< double > &to_subtract) |
| Subtracts the point "to_add" to our vertices. | |
| void | encompass (const rectangle &to_adjust_to) |
| Finds the largest dimension needed to contain all rectangles passed in. | |
| bool | intersect (const rectangle &r2) const |
| Returns true if ‘this’ & ‘r2’ cover any common points. | |
| bool | disjoint (const rectangle &r2) const |
| Returns true if ‘this’ & ‘r2’ have mutually exclusive extents. | |
| bool | join_intersecting (const rectangle &r2, rectangle &result) |
| Sets "result" to encompass this and "r2" if they intersect. | |
| bool | intersection (const rectangle &r2, rectangle &result) |
| Sets "result" to the intersection of this and "r2". | |
| basis::astring | text_form () const |
| Prints out the contents of the rectangle. | |
| bool | from_text (const basis::astring &text) |
| Returns true if the "text" is parsed into this rectangle. | |
| 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. | |
| virtual void | pack (basis::byte_array &packed_form) const |
| Creates a packed form of the packable object in "packed_form". | |
| virtual bool | unpack (basis::byte_array &packed_form) |
| Restores the packable from the "packed_form". | |
Additional Inherited Members | |
Protected Attributes inherited from geometric::rectangle< double > | |
| point< double > | _vertex_1 |
| point< double > | _vertex_2 |
Provides a geometric rectangle that use double floating points numbers.
Definition at line 58 of file cartesian_objects.h.
|
inline |
Definition at line 61 of file cartesian_objects.h.
|
inline |
Definition at line 64 of file cartesian_objects.h.
Definition at line 67 of file cartesian_objects.h.