#include <gfx_types.hh>
Public Member Functions | |
| Rect (void) | |
| Rect (T X1, T Y1, T X2, T Y2) | |
| void | Set (T X1, T Y1, T X2, T Y2) |
| bool | IfZero (void) const |
| bool | IfInside (T x, T y) const |
| |
| bool | IfInside (const Vector2 &v) const |
| bool | IfOutside (const Rect< T > &rect) const |
| |
| bool | IfOverlaps (const Rect &rect) const |
| If any part of another rectangle overlaps this one. | |
| void | Grow (T x, T y) |
| Grow rectangle (expand a corner) to enclose a point. | |
| T | GetWidth (void) const |
| T | GetHeight (void) const |
Public Attributes | |
| T | x1 |
| T | y1 |
| T | x2 |
| T | y2 |
PRECONDITION: (X1,Y1) < (X2,Y2).
(The similar 3D Box class was moved to engine.)
| void gfx::Rect< T >::Set | ( | T | X1, | |
| T | Y1, | |||
| T | X2, | |||
| T | Y2 | |||
| ) | [inline] |
| bool gfx::Rect< T >::IfZero | ( | void | ) | const [inline] |
| bool gfx::Rect< T >::IfInside | ( | T | x, | |
| T | y | |||
| ) | const [inline] |
If any part of another rectangle overlaps this one.
| void gfx::Rect< T >::Grow | ( | T | x, | |
| T | y | |||
| ) | [inline] |
Grow rectangle (expand a corner) to enclose a point.
| T gfx::Rect< T >::GetWidth | ( | void | ) | const [inline] |
| T gfx::Rect< T >::GetHeight | ( | void | ) | const [inline] |
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:28 2007