67 Rect(T rectLeft, T rectTop, T rectWidth, T rectHeight);
Utility class for manipulating 2D axis aligned rectangles.
Rect()
Default constructor.
Rect(T rectLeft, T rectTop, T rectWidth, T rectHeight)
Construct the rectangle from its coordinates.
bool contains(T x, T y) const
Check if a point is inside the rectangle's area.
Rect(const Vector2< T > &position, const Vector2< T > &size)
Construct the rectangle from position and size.
T width
Width of the rectangle.
T height
Height of the rectangle.
Rect(const Rect< U > &rectangle)
Construct the rectangle from another type of rectangle.
T left
Left coordinate of the rectangle.
T top
Top coordinate of the rectangle.
bool intersects(const Rect< T > &rectangle) const
Check the intersection between two rectangles.
Utility template class for manipulating 2-dimensional vectors.
SFML_NETWORK_API bool operator==(const IpAddress &left, const IpAddress &right)
Overload of == operator to compare two IP addresses.
SFML_NETWORK_API bool operator!=(const IpAddress &left, const IpAddress &right)
Overload of != operator to compare two IP addresses.