
2D (left,top,right,bottom) double floating point 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. |
| |
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 the center point of the rectangle. | |
Returns another CL_Rectd containing a rotated version of this one. | |
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. | |
Returns the overlapping area of the two rectangles. | |
Normalize rectangle. Ensures that left | |
Applies an origin and offset pair to this rectangle. |