Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgRect Class Reference

2D rectangle object. More...

#include <ddggeom.h>

List of all members.


Public Members

 ddgRect (void)
 ddgRect ( ddgVector2 p1, ddgVector2 p2)
Constructor from 2 points.

bool intersect (ddgRect *r, ddgRect *i = NULL)
Test if rectangles intersect. More...

ddgVector2 min
The minimum point.

ddgVector2 max
The maximum point.


Detailed Description

2D rectangle object.


Member Function Documentation

bool ddgRect::intersect (ddgRect * r, ddgRect * i = NULL) [inline]

Test if rectangles intersect.

and the rectangle which is the intersection of the given rectangles.


The documentation for this class was generated from the following file:
Generated at Thu Apr 6 00:42:29 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999