Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

VDKRect Class Reference

Provides a simple rectangle object. More...

#include <vdkutils.h>

List of all members.

Public Methods

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

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

Returns 1 if this intersect a rect

Parameters:
rect  a rect reference

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

Returns 1 if this contains a point

Parameters:
point  a point 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

int VDKRect::bottom
 

Corners coordinates

int VDKRect::h
 

width and height

int VDKRect::left
 

Corners coordinates

int VDKRect::right
 

Corners coordinates

int VDKRect::top
 

Corners coordinates

int VDKRect::w
 

width and height


The documentation for this class was generated from the following file:
Generated on Wed Apr 17 13:24:59 2002 for vdk 2.0.1 by doxygen1.2.15