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 T height
Height of the rectangle.
T left
Left coordinate of the rectangle.
bool operator!=(const Rect< T > &left, const Rect< T > &right)
Overload of binary operator !=.
T width
Width of the rectangle.
T top
Top coordinate of the rectangle.
bool operator==(const Rect< T > &left, const Rect< T > &right)
Overload of binary operator ==.
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.