31 #include <SFML/System/Vector2.hpp>
67 Rect(T rectLeft, T rectTop, T rectWidth, T rectHeight);
169 template <
typename T>
184 template <
typename T>
187 #include <SFML/Graphics/Rect.inl>
196 #endif // SFML_RECT_HPP
Utility class for manipulating 2D axis aligned rectangles.
T height
Height of the rectangle.
T width
Width of the rectangle.
Utility template class for manipulating 2-dimensional vectors.
T top
Top coordinate of the rectangle.
bool contains(T x, T y) const
Check if a point is inside the rectangle's area.
Rect()
Default constructor.
bool intersects(const Rect< T > &rectangle) const
Check the intersection between two rectangles.
T left
Left coordinate of the rectangle.