Home | All Classes | Grouped Classes | Index | Search
2D (left,top,right,bottom) rectangle structure. More...
Derived from:
none
Derived by:
none
Group: Core (Math)
#include <ClanLib/core.h>
Construction:
Constructs an rectangle. | |
Rect += Rect operator. | |
Rect -= Rect operator. | |
Rect + Rect operator. | |
Rect - Rect operator. | |
Rect == Rect operator. | |
Rect != Rect operator. |
Attributes:
X1-coordinate. | |
Y1-coordinate. | |
X2-coordinate. | |
Y2-coordinate. | |
Returns the width of the rectangle. | |
Returns the height of the rectangle. | |
Returns the size of the rectangle. | |
Returns true if point is inside the rectangle. | |
Returns true if rectangle passed is overlapping or inside this rectangle. | |
Returns another CL_Rect containing a rotated version of this one. |
Operations:
Sets the size of the rectangle, maintaining top/left position. | |
Calculates and returns the union of two rectangles. | |
Normalize rectangle. Ensures that left is less than right and top is less than bottom. | |
Applies an origin and offset pair to this rectangle |
Detailed description:
!group=Core/Math! !header=core.h!