2D (left,top,right,bottom) rectangle structure - Double More...
Derived from: | public CL_Rectx< double > |
Derived by: | None |
Group: | Math (Core) |
#include <ClanLib/core.h>
Class Members:
Construction: | |
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 the rectangle contains the point. | |
Returns the top-left point of the rectangle. | |
Returns the top-right point of the rectangle. | |
Returns the bottom-right point of the rectangle. | |
Returns the bottom-left point of the rectangle. | |
Returns true if rectangle passed is overlapping or inside this rectangle. | |
Returns true if rectangle passed is inside this rectangle. | |
Returns another CL_Rectx | |
Returns the center point of the rectangle. | |
X1-coordinate. | |
Y1-coordinate. | |
X2-coordinate. | |
Y2-coordinate. |
| |
Sets the top-left point of the rectangle. | |
Sets the top-right point of the rectangle. | |
Sets the bottom-right point of the rectangle. | |
Sets the bottom-left point of the rectangle. | |
Sets the width of the rectangle. | |
Sets the height of the rectangle. | |
Shrink the rectangle. | |
Expand the rectangle. | |
Translate the rect. | |
Sets the size of the rectangle, maintaining top/left position. | |
Calculates the intersection of two rectangles. | |
Calculates 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. |