#include <vdkutils.h>
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
VDKPoint VDKRect::Origin | ( | ) | const [inline] |
Returns rect origin
int VDKRect::W | ( | ) | const [inline] |
Returns rect width
int VDKRect::H | ( | ) | const [inline] |
Returns rect height
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::left |
Corners coordinates
int VDKRect::w |
width and height