|
| | Rectx (const Rectx< double > &rect) |
| |
| | Rectx (const Rectx< float > &rect) |
| |
|
| Rectx< Type > & | set_top_left (const Vec2< Type > &p) |
| | Sets the top-left point of the rectangle. More...
|
| |
| Rectx< Type > & | set_width (Type width) |
| | Sets the width of the rectangle. More...
|
| |
| Rectx< Type > & | set_height (Type height) |
| | Sets the height of the rectangle. More...
|
| |
| Rectx< Type > & | shrink (const Type &new_left, const Type &new_top, const Type &new_right, const Type &new_bottom) |
| | Shrink the rectangle. More...
|
| |
| Rectx< Type > & | shrink (const Type &left_right, const Type &top_bottom) |
| | Shrink the rectangle. More...
|
| |
| Rectx< Type > & | shrink (const Type &shrink) |
| | Shrink the rectangle. More...
|
| |
| Rectx< Type > & | expand (const Type &expand_left, const Type &expand_top, const Type &expand_right, const Type &expand_bottom) |
| | Expand the rectangle. More...
|
| |
| Rectx< Type > & | expand (const Type &left_and_right, const Type &top_and_bottom) |
| | Expand the rectangle. More...
|
| |
| Rectx< Type > & | expand (const Type &expand) |
| | Expand the rectangle. More...
|
| |
| Rectx< Type > & | translate (const Vec2< Type > &p) |
| | Translate the rect. More...
|
| |
| Rectx< Type > & | translate (const Sizex< Type > &p) |
| | Translate the rect. More...
|
| |
| Rectx< Type > & | translate (const Rectx< Type > &p) |
| | Translate the rect by another rect (only uses the left and top coords). More...
|
| |
| Rectx< Type > & | translate (Type x, Type y) |
| | Translate the rect. More...
|
| |
| Rectx< Type > & | set_size (const Sizex< Type > &size) |
| | Sets the size of the rectangle, maintaining top/left position. More...
|
| |
| Rectx< Type > & | overlap (const Rectx< Type > &rect) |
| | Calculates the intersection of two rectangles. More...
|
| |
| Rectx< Type > & | bounding_rect (const Rectx< Type > &rect) |
| | Calculates the bounding rectangle of the rectangles. More...
|
| |
| Rectx< Type > & | normalize () |
| | Normalize rectangle. More...
|
| |
| Rectx< Type > & | apply_alignment (Origin origin, Type x, Type y) |
| | Applies an origin and offset pair to this rectangle. More...
|
| |
| Rectx< Type > & | clip (const Rectx< Type > &cr) |
| | Clip according to the specified clip rectangle. More...
|
| |
|
| | Rectx () |
| | Constructs an rectangle. More...
|
| |
| | Rectx (const Sizex< Type > &s) |
| | Constructs an rectangle. More...
|
| |
| | Rectx (Type new_left, Type new_top, Type new_right, Type new_bottom) |
| | Constructs an rectangle. More...
|
| |
| | Rectx (const Pointx< Type > &p, const Sizex< Type > &size) |
| | Constructs an rectangle. More...
|
| |
| | Rectx (Type new_left, Type new_top, const Sizex< Type > &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...
|
| |
| bool | operator== (const Rectx< Type > &r) const |
| | Rect == Rect operator. More...
|
| |
| bool | operator!= (const Rectx< Type > &r) const |
| | Rect != Rect operator. More...
|
| |
| static Rectx< Type > | xywh (Type x, Type y, Type width, Type height) |
| |
| static Rectx< Type > | ltrb (Type left, Type top, Type right, Type bottom) |
| |
template<typename Type>
class clan::Rectx< Type >
2D (left,top,right,bottom) rectangle structure.
These line templates are defined for: int (Rect), float (Rectf), double (Rectd)