#include <Rect.hpp>
Public Member Functions | |
| float | area () const |
| Point2f | bottomRight () const |
| bool | contains (const Point2f &pt) const |
| Rect | denormalize (int destWidth, int destHeight) const |
| bool | empty () const |
| bool | isNormalized () const |
| Rect | normalize (int srcWidth, int srcHeight) const |
| Rect & | operator= (const Rect &r)=default |
| Rect & | operator= (Rect &&r)=default |
| Rect ()=default | |
| Rect (const Point2f &org, const Size2f &sz) | |
| Rect (const Point2f &pt1, const Point2f &pt2) | |
| Rect (const Rect &r) | |
| Rect (float x, float y, float width, float height) | |
| Size2f | size () const |
| Point2f | topLeft () const |
Public Attributes | |
| float | height = 0.0f |
| float | width = 0.0f |
| float | x = 0.0f |
| float | y = 0.0f |
Rect structure
x,y coordinates together with width and height that define a rectangle. Can be either normalized [0,1] or absolute representation.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |