#include <Karto.h>
Public Member Functions | |
| const Vector2< T > | GetCenter () const |
| T | GetHeight () const |
| const Vector2< T > & | GetPosition () const |
| const Size2< T > & | GetSize () const |
| T | GetWidth () const |
| T | GetX () const |
| T | GetY () const |
| kt_bool | operator!= (const Rectangle2 &rOther) const |
| Rectangle2 & | operator= (const Rectangle2 &rOther) |
| kt_bool | operator== (const Rectangle2 &rOther) const |
| Rectangle2 () | |
| Rectangle2 (T x, T y, T width, T height) | |
| Rectangle2 (const Vector2< T > &rPosition, const Size2< T > &rSize) | |
| Rectangle2 (const Rectangle2 &rOther) | |
| void | SetHeight (T height) |
| void | SetPosition (const T &rX, const T &rY) |
| void | SetPosition (const Vector2< T > &rPosition) |
| void | SetSize (const Size2< T > &rSize) |
| void | SetWidth (T width) |
| void | SetX (T x) |
| void | SetY (T y) |
Private Attributes | |
| Vector2< T > | m_Position |
| Size2< T > | m_Size |
Stores x, y, width and height that represents the location and size of a rectangle (x, y) is at bottom left in mapper!
| karto::Rectangle2< T >::Rectangle2 | ( | ) | [inline] |
| karto::Rectangle2< T >::Rectangle2 | ( | T | x, |
| T | y, | ||
| T | width, | ||
| T | height | ||
| ) | [inline] |
| karto::Rectangle2< T >::Rectangle2 | ( | const Vector2< T > & | rPosition, |
| const Size2< T > & | rSize | ||
| ) | [inline] |
| karto::Rectangle2< T >::Rectangle2 | ( | const Rectangle2< T > & | rOther | ) | [inline] |
| const Vector2<T> karto::Rectangle2< T >::GetCenter | ( | ) | const [inline] |
| T karto::Rectangle2< T >::GetHeight | ( | ) | const [inline] |
| const Vector2<T>& karto::Rectangle2< T >::GetPosition | ( | ) | const [inline] |
| const Size2<T>& karto::Rectangle2< T >::GetSize | ( | ) | const [inline] |
| T karto::Rectangle2< T >::GetWidth | ( | ) | const [inline] |
| T karto::Rectangle2< T >::GetX | ( | ) | const [inline] |
| T karto::Rectangle2< T >::GetY | ( | ) | const [inline] |
| kt_bool karto::Rectangle2< T >::operator!= | ( | const Rectangle2< T > & | rOther | ) | const [inline] |
| Rectangle2& karto::Rectangle2< T >::operator= | ( | const Rectangle2< T > & | rOther | ) | [inline] |
| kt_bool karto::Rectangle2< T >::operator== | ( | const Rectangle2< T > & | rOther | ) | const [inline] |
| void karto::Rectangle2< T >::SetHeight | ( | T | height | ) | [inline] |
| void karto::Rectangle2< T >::SetPosition | ( | const T & | rX, |
| const T & | rY | ||
| ) | [inline] |
| void karto::Rectangle2< T >::SetPosition | ( | const Vector2< T > & | rPosition | ) | [inline] |
| void karto::Rectangle2< T >::SetSize | ( | const Size2< T > & | rSize | ) | [inline] |
| void karto::Rectangle2< T >::SetWidth | ( | T | width | ) | [inline] |
| void karto::Rectangle2< T >::SetX | ( | T | x | ) | [inline] |
| void karto::Rectangle2< T >::SetY | ( | T | y | ) | [inline] |
Vector2<T> karto::Rectangle2< T >::m_Position [private] |
Size2<T> karto::Rectangle2< T >::m_Size [private] |