Loading...
Searching...
No Matches
Rect.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
constexpr Rect(Vector2< T > position, Vector2< T > size)
Construct the rectangle from position and size.
constexpr bool operator!=(const Rect< T > &lhs, const Rect< T > &rhs)
Overload of binary operator!=
constexpr std::optional< Rect< T > > findIntersection(const Rect< T > &rectangle) const
Check the intersection between two rectangles.
constexpr bool operator==(const Rect< T > &lhs, const Rect< T > &rhs)
Overload of binary operator==
constexpr Vector2< T > getCenter() const
Get the position of the center of the rectangle.
constexpr bool contains(Vector2< T > point) const
Check if a point is inside the rectangle's area.
Definition AudioResource.hpp:36