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