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 bool contains(T x, T y) const
Check if a point is inside the rectangle's area.
T height
Height of the rectangle.
T width
Width of the rectangle.
Rect()
Default constructor.
Utility class for manipulating 2D axis aligned rectangles.
bool intersects(const Rect< T > &rectangle) const
Check the intersection between two rectangles.
Utility template class for manipulating 2-dimensional vectors.
T top
Top coordinate of the rectangle.
T left
Left coordinate of the rectangle.