#include <rect.h>
| rect | ( | ) | [inline] |
| rect | ( | T | x, | |
| T | y, | |||
| T | x2, | |||
| T | y2 | |||
| ) | [inline] |
| rect | ( | const position2d< T > & | upperLeft, | |
| const position2d< T > & | lowerRight | |||
| ) | [inline] |
| rect | ( | const position2d< T > & | pos, | |
| const dimension2d< T > & | size | |||
| ) | [inline] |
| void clipAgainst | ( | const rect< T > & | other | ) | [inline] |
| position2d<T> getCenter | ( | ) | const [inline] |
| T getHeight | ( | ) | const [inline] |
| dimension2d<T> getSize | ( | ) | const [inline] |
| T getWidth | ( | ) | const [inline] |
| bool isPointInside | ( | const position2d< T > & | pos | ) | const [inline] |
Returns if a 2d point is within this rectangle.
| pos,: | Position to test if it lies within this rectangle. |
| bool isValid | ( | ) | const [inline] |
Returns if the rect is valid to draw. It could be invalid, if The UpperLeftCorner is lower or more right than the LowerRightCorner, or if the area described by the rect is 0.
| const T& LRX | ( | ) | const [inline] |
| T& LRX | ( | ) | [inline] |
| const T& LRY | ( | ) | const [inline] |
| T& LRY | ( | ) | [inline] |
| rect<T> operator+ | ( | const position2d< T > & | pos | ) | const [inline] |
| const rect<T>& operator+= | ( | const position2d< T > & | pos | ) | [inline] |
| void repair | ( | ) | [inline] |
If the lower right corner of the rect is smaller then the upper left, the points are swapped.
| void set | ( | const T & | ulX, | |
| const T & | ulY, | |||
| const T & | lrX, | |||
| const T & | lrY | |||
| ) | [inline] |
| const T& ULX | ( | ) | const [inline] |
| T& ULX | ( | ) | [inline] |
| const T& ULY | ( | ) | const [inline] |
| T& ULY | ( | ) | [inline] |
1.5.1-p1