|
NovaSVG 0.11.5
An SVG library
|
Represents a 2D axis-aligned bounding box. More...
#include <geometry.h>
Public Member Functions | |
| box ()=default | |
| Constructs a box with zero dimensions. | |
| box (float x, float y, float w, float h) | |
| Constructs a box with the specified position and size. | |
| box & | transform (const stb::matrix &matrix) |
| Transforms the box using the specified matrix. | |
| box | transformed (const stb::matrix &matrix) const |
| Returns a new box transformed by the specified matrix. | |
Public Attributes | |
| float | x {0} |
| The x-coordinate of the box's origin. | |
| float | y {0} |
| The y-coordinate of the box's origin. | |
| float | w {0} |
| The width of the box. | |
| float | h {0} |
| The height of the box. | |
Represents a 2D axis-aligned bounding box.
Definition at line 18 of file geometry.h.
|
default |
Constructs a box with zero dimensions.
Referenced by transform(), and transformed().
| nova::vg::box::box | ( | float | x, |
| float | y, | ||
| float | w, | ||
| float | h ) |
| box & nova::vg::box::transform | ( | const stb::matrix & | matrix | ) |
Transforms the box using the specified matrix.
| matrix | The transformation matrix. |
References box().
| box nova::vg::box::transformed | ( | const stb::matrix & | matrix | ) | const |
Returns a new box transformed by the specified matrix.
| matrix | The transformation matrix. |
References box().
| float nova::vg::box::h {0} |
| float nova::vg::box::w {0} |
| float nova::vg::box::x {0} |
The x-coordinate of the box's origin.
Definition at line 48 of file geometry.h.
Referenced by box().
| float nova::vg::box::y {0} |
The y-coordinate of the box's origin.
Definition at line 49 of file geometry.h.
Referenced by box().