|
| | Rectd () |
| |
| | Rectd (const Sizex< int > &s) |
| |
| | Rectd (const Sizex< float > &s) |
| |
| | Rectd (const Sizex< double > &s) |
| |
| | Rectd (double new_left, double new_top, double new_right, double new_bottom) |
| |
| | Rectd (const Pointx< double > &p, const Sizex< double > &size) |
| |
| | Rectd (const Rectx< int > &rect) |
| |
| | Rectd (const Rectx< float > &rect) |
| |
| | Rectd (const Rectx< double > &rect) |
| |
| | Rectd (double new_left, double new_top, const Sizex< double > &size) |
| |
| | Rectx () |
| | Constructs an rectangle. More...
|
| |
| | Rectx (const Sizex< double > &s) |
| | Constructs an rectangle. More...
|
| |
| | Rectx (double new_left, double new_top, double new_right, double new_bottom) |
| | Constructs an rectangle. More...
|
| |
| | Rectx (const Pointx< double > &p, const Sizex< double > &size) |
| | Constructs an rectangle. More...
|
| |
| | Rectx (double new_left, double new_top, const Sizex< double > &size) |
| | Constructs an rectangle. More...
|
| |
| | Rectx (const Rectx< int > &rect) |
| | Constructs an rectangle. More...
|
| |
| | Rectx (const Rectx< float > &rect) |
| | Constructs an rectangle. More...
|
| |
| | Rectx (const Rectx< double > &rect) |
| | Constructs an rectangle. More...
|
| |
| Rectx< double > & | apply_alignment (Origin origin, double x, double y) |
| | Applies an origin and offset pair to this rectangle. More...
|
| |
| Pointx< double > | bottom_left () const |
| | Returns the bottom-left point outside the rectangle. More...
|
| |
| Pointx< double > | bottom_right () const |
| | Returns the bottom-right point outside the rectangle. More...
|
| |
| Rectx< double > & | bounding_rect (const Rectx< double > &rect) |
| | Calculates the bounding rectangle of the rectangles. More...
|
| |
| Pointx< double > | center () const |
| | Returns the center point of the rectangle. More...
|
| |
| Rectx< double > & | clip (const Rectx< double > &cr) |
| | Clip according to the specified clip rectangle. More...
|
| |
| bool | contains (const Vec2< double > &p) const |
| | Returns true if the rectangle contains the point. More...
|
| |
| Rectx< double > & | expand (const double &expand_left, const double &expand_top, const double &expand_right, const double &expand_bottom) |
| | Expand the rectangle. More...
|
| |
| Rectx< double > & | expand (const double &left_and_right, const double &top_and_bottom) |
| | Expand the rectangle. More...
|
| |
| Rectx< double > & | expand (const double &expand) |
| | Expand the rectangle. More...
|
| |
| double | height () const |
| | Returns the height of the rectangle. More...
|
| |
| bool | is_inside (const Rectx< double > &r) const |
| | Returns true if rectangle passed is inside this rectangle. More...
|
| |
| bool | is_overlapped (const Rectx< double > &r) const |
| | Returns true if rectangle passed is overlapping or inside this rectangle. More...
|
| |
| Rectx< double > & | normalize () |
| | Normalize rectangle. More...
|
| |
| bool | operator!= (const Rectx< double > &r) const |
| | Rect != Rect operator. More...
|
| |
| Rectx< double > | operator* (const double &s) const |
| | Rect * operator. More...
|
| |
| Rectx< double > & | operator*= (const double &s) |
| | Rect *= operator. More...
|
| |
| bool | operator== (const Rectx< double > &r) const |
| | Rect == Rect operator. More...
|
| |
| Rectx< double > & | overlap (const Rectx< double > &rect) |
| | Calculates the intersection of two rectangles. More...
|
| |
| Pointx< double > | position () const |
| | Returns the position of the rectangle. More...
|
| |
| Rectx< double > | rot_bounds (const Vec2< double > &hotspot, float angle) const |
| | Returns another Rectx<Type> containing a rotated version of this one. More...
|
| |
| Rectx< double > | rot_bounds (Origin origin, double x, double y, float angle) const |
| | Returns another Rectx<Type> containing a rotated version of this one. More...
|
| |
| Rectx< double > & | set_height (double height) |
| | Sets the height of the rectangle. More...
|
| |
| Rectx< double > & | set_position (const Vec2< double > &p) |
| | Sets the position of the rectangle. More...
|
| |
| Rectx< double > & | set_size (const Sizex< double > &size) |
| | Sets the size of the rectangle, maintaining top/left position. More...
|
| |
| Rectx< double > & | set_width (double width) |
| | Sets the width of the rectangle. More...
|
| |
| Rectx< double > & | shrink (const double &new_left, const double &new_top, const double &new_right, const double &new_bottom) |
| | Shrink the rectangle. More...
|
| |
| Rectx< double > & | shrink (const double &left_right, const double &top_bottom) |
| | Shrink the rectangle. More...
|
| |
| Rectx< double > & | shrink (const double &shrink) |
| | Shrink the rectangle. More...
|
| |
| Sizex< double > | size () const |
| | Returns the size of the rectangle. More...
|
| |
| Pointx< double > | top_left () const |
| | Returns the top-left point inside the rectangle. More...
|
| |
| Pointx< double > | top_right () const |
| | Returns the top-right point outside the rectangle. More...
|
| |
| Rectx< double > & | translate (const Vec2< double > &p) |
| | Translate the rect. More...
|
| |
| Rectx< double > & | translate (const Sizex< double > &p) |
| | Translate the rect. More...
|
| |
| Rectx< double > & | translate (const Rectx< double > &p) |
| | Translate the rect by another rect (only uses the left and top coords). More...
|
| |
| Rectx< double > & | translate (double x, double y) |
| | Translate the rect. More...
|
| |
| double | width () const |
| | Returns the width of the rectangle. More...
|
| |
| double | x () const |
| | X position of rectangle. More...
|
| |
| double | y () const |
| | Y position of rectangle. More...
|
| |
2D (left,top,right,bottom) rectangle structure - Double