#include <arrect.h>
Inheritance diagram for ARLib::Utility::ARRect< T >:

Public Member Functions | |
| ARRect (T X1, T Y1, T X2, T Y2) | |
| Constructor. | |
| void | Set (T X1, T Y1, T X2, T Y2) |
| Set coordinates in a single statement. | |
| int | GetWidth () |
| Returns the width of the rectangle. | |
| int | GetHeight () |
| Returns the height of the rectangle. | |
| unsigned int | GetArea () |
| Returns the area of the rectangle. | |
| void | Clear () |
| Resets the rect. | |
| bool | IsEmpty () |
| Returns True if the rectangle is empty ( x1,y1,x2 and y2 are all 0 ). | |
| void | Normalize () |
| Makes sure that x1 is less than x2 and y1 is less than y2. | |
| void | MoveToOrigin () |
| Moves coordinates so that x1 and y1 are at 0. The Width and height are maintained. | |
Public Attributes | |
| T | x1 |
| The left column position. | |
| T | y1 |
| The bottom row position. | |
| T | x2 |
| The right column position. | |
| T | y2 |
| The top row position. | |
1.3.9.1