VDKRect Class Reference

Provides a simple rectangle object. More...

#include <vdkutils.h>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Provides a simple rectangle object.

Constructor & Destructor Documentation

VDKRect::VDKRect (  )  [inline]

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

VDKRect::VDKRect ( VDKRect r  )  [inline]

Copy initializer

VDKRect::~VDKRect (  )  [inline]

Destructor


Member Function Documentation

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

Parameters:
point a point reference

int VDKRect::Contains ( const VDKRect r  )  const [inline]

Returns 1 if this intersect a rect

Parameters:
rect a rect reference


Member Data Documentation

Corners coordinates

width and height


The documentation for this class was generated from the following file:

Generated on Tue May 6 03:40:11 2008 for vdk 2.4.0 by  doxygen 1.5.5