vdk 2.4.0
Public Member Functions | Public Attributes
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:
xleft-upper corner x
left-uppercorner y
_wwidth
_hheight
VDKRect::VDKRect ( VDKRect r) [inline]

Copy initializer

VDKRect::~VDKRect ( ) [inline]

Destructor


Member Function Documentation

int VDKRect::Contains ( const VDKPoint point) const [inline]

Returns 1 if this contains a point

Parameters:
pointa point reference
int VDKRect::Contains ( const VDKRect r) const [inline]

Returns 1 if this intersect a rect

Parameters:
recta 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


Member Data Documentation

Corners coordinates

width and height


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