#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!
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |