#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 (const Rectangle2 &rOther) | |
| Rectangle2 (const Vector2< T > &rPosition, const Size2< T > &rSize) | |
| Rectangle2 (T x, T y, T width, T height) | |
| 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 Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
| Vector2< T > | m_Position |
| Size2< T > | m_Size |
Friends | |
| class | boost::serialization::access |
Stores x, y, width and height that represents the location and size of a rectangle (x, y) is at bottom left in mapper!
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
Serialization: class Rectangle2
|
private |
|
private |