60 Rect(T LeftCoord, T TopCoord, T RightCoord, T BottomCoord);
85 void Offset(T OffsetX, T OffsetY);
118 #include <SFML/Graphics/Rect.inl> 127 #endif // SFML_RECT_HPP Rect is an utility class for manipulating rectangles.
T Right
Right coordinate of the rectangle.
T GetHeight() const
Get the height of the rectangle.
void Offset(T OffsetX, T OffsetY)
Move the whole rectangle by the given offset.
Rect()
Default constructor.
bool Contains(T X, T Y) const
Check if a point is inside the rectangle's area.
T Bottom
Bottom coordinate of the rectangle.
T GetWidth() const
Get the width of the rectangle.
T Top
Top coordinate of the rectangle.
T Left
Left coordinate of the rectangle.
bool Intersects(const Rect< T > &Rectangle, Rect< T > *OverlappingRect=NULL) const
Check intersection between two rectangles.