The bounding box over the type. More...
#include <itype.h>
Public Member Functions | |
| HGL::Type::BaseVector2D | getAspectRatio () const |
| Calculates the aspect ratio of the type. | |
| HGL::Type::BaseVector2D | getCentroid () const |
| Calculates the centroid of the bounding box. | |
| float | getHeight () const |
| Calculates the height of the bounding box. | |
| float | getWidth () const |
| Calculates the width of the bounding box. | |
| bool | isDefined () const |
| Checks if the bounding box is defined (i.e. yet calculated). | |
The bounding box over the type.
| HGL::Type::BaseVector2D BOUNDINGBOX::getAspectRatio | ( | ) | const |
Calculates the aspect ratio of the type.
| HGL::Type::BaseVector2D BOUNDINGBOX::getCentroid | ( | ) | const |
Calculates the centroid of the bounding box.
| float BOUNDINGBOX::getHeight | ( | ) | const |
Calculates the height of the bounding box.
| float BOUNDINGBOX::getWidth | ( | ) | const |
Calculates the width of the bounding box.
| bool BOUNDINGBOX::isDefined | ( | ) | const |
Checks if the bounding box is defined (i.e. yet calculated).
true if the bounding box is defined, false otherwise
1.6.1