Struct Rect
Defined in File Rect.hpp
Struct Documentation
-
struct Rect
Rect structure
x,y coordinates together with width and height that define a rectangle. Can be either normalized [0,1] or absolute representation.
Public Functions
-
Rect() = default
-
inline Rect(float x, float y, float width, float height)
-
inline Rect(float x, float y, float width, float height, bool normalized)
-
inline float area() const
Area (width*height) of the rectangle
-
inline bool empty() const
True if rectangle is empty.
-
inline bool isNormalized() const
Whether rectangle is normalized (coordinates in [0,1] range) or not.
-
Rect() = default