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