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