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.
Rect(T rectLeft, T rectTop, T rectWidth, T rectHeight)
Construct the rectangle from its coordinates.
Rect(const Vector2< T > &position, const Vector2< T > &size)
Construct the rectangle from position and size.
bool contains(const Vector2< T > &point) const
Check if a point is inside the rectangle's area.
Rect(const Rect< U > &rectangle)
Construct the rectangle from another type of rectangle.
sf::Vector2< T > getPosition() const
Get the position of the rectangle's top-left corner.
bool intersects(const Rect< T > &rectangle) const
Check the intersection between two rectangles.
bool intersects(const Rect< T > &rectangle, Rect< T > &intersection) const
Check the intersection between two rectangles.
Definition AlResource.hpp:35
bool operator==(const IpAddress &left, const IpAddress &right)
Overload of == operator to compare two IP addresses.
bool operator!=(const IpAddress &left, const IpAddress &right)
Overload of != operator to compare two IP addresses.