3#include "spark/math/Vector2.h"
34 explicit Rectangle(T x, T y, T width, T height);
55 template <
typename To>
64#include "spark/math/impl/Rectangle.h"
Represents a rectangle in 2D space.
Definition Rectangle.h:15
constexpr Rectangle()=default
\brif Initializes a Rectangle with position and extent set to {0, 0}.
constexpr bool operator!=(const Rectangle &other) const noexcept
Compares two Rectangle for inequality.
Definition Rectangle.h:21
constexpr Rectangle< To > castTo() const
Casts the rectangle to a rectangle with a different component type.
Definition Rectangle.h:28
constexpr bool operator==(const Rectangle &other) const noexcept
Compares two Rectangle for equality.
Definition Rectangle.h:15
A vector with two components.
Definition Vector2.h:13