Luna::Rect
Used to specify a 2D rectangle region using position and size.
template <typename _Ty>
struct Luna::Rect
Parameters
-
_Ty
The type that represents values of the rectangle.
Member objects
-
The X position of the rectangle.
-
The Y position of the rectangle.
-
The width of the rectangle.
-
The height of the rectangle.
Member functions
-
Constructs one rectangle. Values of the rectangle is uninitialized.
-
Rect(_Ty offset_x, _Ty offset_y, _Ty width, _Ty height)
Constructs one rectangle.
-
bool operator==(const Rect &rhs) const
Compares two rectangles for equality.
-
bool operator!=(const Rect &rhs) const
Compares two rectangles for non-equality.