#include <Rect.hpp>
Public Member Functions | |
sfRect () | |
Default constructor. | |
sfRect (T LeftCoord, T TopCoord, T RightCoord, T BottomCoord) | |
Construct the rectangle from its coordinates. | |
T | GetWidth () const |
Get the width of the rectangle. | |
T | GetHeight () const |
Get the height of the rectangle. | |
bool | Contains (T X, T Y) const |
Check if a point is inside the rectangle's area. | |
bool | Intersects (const sfRect< T > &Rect, sfRect< T > *OverlappingRect=NULL) const |
Check intersection between two rectangles. | |
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. |
Template parameter defines the type of coordinates (integer float, ...)
Definition at line 39 of file Rect.hpp.
T sfRect< T >::GetWidth | ( | ) | const [inline] |
T sfRect< T >::GetHeight | ( | ) | const [inline] |
bool sfRect< T >::Contains | ( | T | X, | |
T | Y | |||
) | const [inline] |