vdk 2.4.0
|
Provides a simple rectangle object. More...
#include <vdkutils.h>
Provides a simple rectangle object.
VDKRect::VDKRect | ( | ) | [inline] |
Constructor makes a null rect
VDKRect::VDKRect | ( | int | x, |
int | y, | ||
int | _w, | ||
int | _h | ||
) | [inline] |
Constructor
x | left-upper corner x |
left-upper | corner y |
_w | width |
_h | height |
VDKRect::VDKRect | ( | VDKRect & | r | ) | [inline] |
Copy initializer
VDKRect::~VDKRect | ( | ) | [inline] |
Destructor
int VDKRect::Contains | ( | const VDKPoint & | point | ) | const [inline] |
Returns 1 if this contains a point
point | a point reference |
int VDKRect::Contains | ( | const VDKRect & | r | ) | const [inline] |
Returns 1 if this intersect a rect
rect | a rect reference |
int VDKRect::H | ( | ) | const [inline] |
Returns rect height
VDKPoint VDKRect::Origin | ( | ) | const [inline] |
Returns rect origin
int VDKRect::W | ( | ) | const [inline] |
Returns rect width
int VDKRect::left |
Corners coordinates
int VDKRect::w |
width and height