Provides a simple rectangle object.
More...
#include <vdkutils.h>
Public Attributes |
int | left |
int | w |
Detailed Description
Provides a simple rectangle object.
Constructor & Destructor Documentation
Constructor makes a null rect
VDKRect::VDKRect |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
_w, |
|
|
int |
_h |
|
) |
| |
|
inline |
Constructor
- Parameters
-
x | left-upper corner x |
left-upper | corner y |
_w | width |
_h | height |
Member Function Documentation
int VDKRect::Contains |
( |
const VDKPoint & |
point | ) |
const |
|
inline |
Returns 1 if this contains a point
- Parameters
-
int VDKRect::Contains |
( |
const VDKRect & |
r | ) |
const |
|
inline |
Returns 1 if this intersect a rect
- Parameters
-
Member Data Documentation
The documentation for this class was generated from the following file: