JNR
|
2D rectangle (used by the GUI and also as a simple tool for proximity testing) More...
#include <laRect2.h>
Public Member Functions | |
M_BOOL | intersecting (const laRect2 &r) const |
void | offset (const laPoint2 &ofs) |
void | GridRect (laPoint2 &pt) |
void | draw (laRenderer *r, laPoint2 &pt=laPoint2()) |
Draw rectangle ( primarily for debug purpoces ) | |
Rectangle constructors | |
laRect2 (void) | |
laRect2 (const laPoint2 &pos, const laPoint2 &size) | |
void | reset () |
void | add (const laPoint2 &p) |
Revert to "uninitialized" state. | |
void | add (const laLine2 &ln) |
void | add (const laRect2 &r) |
void | inflate (const laPoint2 &inf) |
Add vector to the rectangle (e.g. velocity) | |
Public Attributes | |
laPoint2 | pt [2] |
Rectangle coordinates (upper-left and lower-right point) | |
M_BOOL | bInitialized |
Validity flag. | |
2D rectangle (used by the GUI and also as a simple tool for proximity testing)