Omnidome
Fulldome Mapping Software Toolkit
|
A box defines a 3D bounding box with a min and max point. More...
#include <Box.h>
Public Member Functions | |
Box () | |
Default constructor. More... | |
Box (QVector3D const &_min, QVector3D const &_max) | |
Constructor by min and max vector. More... | |
QVector3D | size () const |
Returns the size of the box (= max - min) More... | |
qreal | radius () const |
Returns radius of the box (= half length of size vector) More... | |
QVector3D | min () const |
Returns the minimum point. More... | |
QVector3D | max () const |
Returns the maximum point. More... | |
void | setMin (QVector3D const &) |
Set minimum point of the box. More... | |
void | setMax (QVector3D const &) |
Set maximum point of the box. More... | |
void | setMinMax (QVector3D const &, QVector3D const &) |
Set minimum and maximum together. More... | |
void | extend (QVector3D const &) |
Extend dimenstions of box by point. More... | |
QVector3D | center () const |
Return the center point of the box. More... | |
Private Member Functions | |
void | validate () |
Check if min < max and swap if necessary. More... | |
Private Attributes | |
QVector3D | min_ |
QVector3D | max_ |
A box defines a 3D bounding box with a min and max point.
omni::geometry::Box::Box | ( | ) |
Default constructor.
omni::geometry::Box::Box | ( | QVector3D const & | _min, |
QVector3D const & | _max | ||
) |
Constructor by min and max vector.
QVector3D omni::geometry::Box::center | ( | ) | const |
Return the center point of the box.
void omni::geometry::Box::extend | ( | QVector3D const & | _v | ) |
Extend dimenstions of box by point.
QVector3D omni::geometry::Box::max | ( | ) | const |
Returns the maximum point.
QVector3D omni::geometry::Box::min | ( | ) | const |
Returns the minimum point.
qreal omni::geometry::Box::radius | ( | ) | const |
Returns radius of the box (= half length of size vector)
void omni::geometry::Box::setMax | ( | QVector3D const & | _max | ) |
Set maximum point of the box.
void omni::geometry::Box::setMin | ( | QVector3D const & | _min | ) |
Set minimum point of the box.
void omni::geometry::Box::setMinMax | ( | QVector3D const & | _min, |
QVector3D const & | _max | ||
) |
Set minimum and maximum together.
QVector3D omni::geometry::Box::size | ( | ) | const |
Returns the size of the box (= max - min)
|
private |
Check if min < max and swap if necessary.
|
private |
|
private |