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