#include <ddggeom.h>
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. |
bool ddgRect::intersect (ddgRect * r, ddgRect * i = NULL) [inline]
|
Test if rectangles intersect.
and the rectangle which is the intersection of the given rectangles.