#include <Rect.hpp>
Public Member Functions | |
sfRect () | |
sfRect (T LeftCoord, T TopCoord, T RightCoord, T BottomCoord) | |
T | GetWidth () const |
T | GetHeight () const |
bool | Intersect (const sfRect< T > &Rect, sfRect< T > *OverlappingRect=NULL) const |
Public Attributes | |
T | Left |
Left coordinate of the rectangle. | |
T | Top |
Top coordinate of the rectangle. | |
T | Right |
Right coordinate of the rectangle. | |
T | Bottom |
Bottom coordinate of the rectangle. |
Definition at line 39 of file Rect.hpp.
T sfRect< T >::GetWidth | ( | ) | const [inline] |
Get the width of the rectangle
Definition at line 58 of file Rect.inl.
References sfRect< T >::Left, and sfRect< T >::Right.
Referenced by sfAnimatedSprite::CreateAnimation(), sfSprite::GetWidth(), and sfSprite::Render().
T sfRect< T >::GetHeight | ( | ) | const [inline] |
Get the height of the rectangle
Definition at line 68 of file Rect.inl.
References sfRect< T >::Bottom, and sfRect< T >::Top.
Referenced by sfAnimatedSprite::CreateAnimation(), sfSprite::GetHeight(), and sfSprite::Render().
bool sfRect< T >::Intersect | ( | const sfRect< T > & | Rect, | |
sfRect< T > * | OverlappingRect = NULL | |||
) | const [inline] |
Check intersection between two rectangles
Rect | : Rectangle to test | |
OverlappingRect | : Rectangle to be filled with overlapping rect (NULL by default) |
Definition at line 78 of file Rect.inl.
References sfRect< T >::Bottom, sfRect< T >::Left, sfRect< T >::Right, sfRect< T >::sfRect(), and sfRect< T >::Top.