SDLPP::Rect2< T > Class Template Reference
List of all members.
Public Types |
|
typedef Rect2< T > | self |
|
typedef Vec2< T > | point |
Public Member Functions |
|
| Rect2 (const point &topleft, const point &bottomright) |
|
| Rect2 (const T x0, const T y0, const T x1, const T y1) |
|
T | get_width () const |
|
T | get_height () const |
|
point | get_size () const |
|
self & | operator+= (const point &v) |
|
self & | operator-= (const point &v) |
|
self & | expand (const point &v) |
|
self & | normalize () |
|
self & | operator*= (const self &) |
|
bool | inside (const point &v) const |
|
bool | is_null () const |
|
bool | is_valid () const |
|
bool | contains (int x, int y) const |
|
bool | contains (const point &pos) const |
|
self & | unite (const Vec2< int > &p) |
|
self & | unite (const self &r) |
|
self & | intersect (const self &r) |
|
bool | overlapping (const self &r) const |
|
self | overlap (const self &r) const |
Public Attributes |
|
point | tl |
|
point | br |
template<class T>
class SDLPP::Rect2< T >
The documentation for this class was generated from the following file: