
2D (left,top,right,bottom) rectangle structure. More...
Derived from: | None |
Derived by: | None |
Group: | Math (Core) |
#include <ClanLib/core.h>
Class Members:
Construction: | |
Constructs an rectangle. | |
Rect == Rect operator. | |
Rect != Rect operator. |
| |
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. | |
Returns the center point of the rectangle. | |
X1-coordinate. | |
Y1-coordinate. | |
X2-coordinate. | |
Y2-coordinate. |
| |
Shrink the rectangle. | |
Expand the rectangle. | |
Translate the rect. | |
Sets the size of the rectangle, maintaining top/left position. | |
Calculates and returns the union of two rectangles. | |
Calculates and returns the bounding rectangle of the 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. | |
Clip according to the specified clip rectangle. |