20 #ifndef OMNI_GEOMETRY_BOX_H_
21 #define OMNI_GEOMETRY_BOX_H_
34 Box(QVector3D
const& _min,
35 QVector3D
const& _max);
38 QVector3D
size()
const;
44 QVector3D
min()
const;
47 QVector3D
max()
const;
50 void setMin(QVector3D
const&);
53 void setMax(QVector3D
const&);
60 void extend(QVector3D
const&);
void extend(QVector3D const &)
Extend dimenstions of box by point.
Definition: Box.cpp:83
Box()
Default constructor.
Definition: Box.cpp:26
QVector3D min_
Definition: Box.h:69
QVector3D center() const
Return the center point of the box.
Definition: Box.cpp:79
QVector3D size() const
Returns the size of the box (= max - min)
Definition: Box.cpp:40
A box defines a 3D bounding box with a min and max point.
Definition: Box.h:28
void setMinMax(QVector3D const &, QVector3D const &)
Set minimum and maximum together.
Definition: Box.cpp:72
void setMax(QVector3D const &)
Set maximum point of the box.
Definition: Box.cpp:66
void validate()
Check if min < max and swap if necessary.
Definition: Box.cpp:91
void setMin(QVector3D const &)
Set minimum point of the box.
Definition: Box.cpp:60
qreal radius() const
Returns radius of the box (= half length of size vector)
Definition: Box.cpp:45
QVector3D max() const
Returns the maximum point.
Definition: Box.cpp:55
QVector3D max_
Definition: Box.h:69
QVector3D min() const
Returns the minimum point.
Definition: Box.cpp:50