#include <ddggeom.h>
Public Members | |||
ddgRect2 (void) | |||
ddgRect2 ( ddgVector2 *p1, ddgVector2 *p2) | |||
Constructor from 2 points. | |||
bool | intersect (ddgRect2 *r, ddgRect2 *i = NULL) | ||
Test if rectangles intersect. More... | |||
ddgVector2 | min | ||
The minimum point. | |||
ddgVector2 | max | ||
The maximum point. |
bool ddgRect2::intersect (ddgRect2 * r, ddgRect2 * i = NULL) [inline]
|
Test if rectangles intersect.
and the rectangle which is the intersection of the given rectangles.