14 #ifndef BASICTOOL_GEOAABOX_H 15 #define BASICTOOL_GEOAABOX_H 59 void Min(
const double x,
const double y,
const double z);
60 void Max(
const double x,
const double y,
const double z);
72 template <
class T,
class U>
AABox()
Default constructor.
Representation of a 3D rectangular box which sides are aligned w/ coordinate axis. A representation of an Axis-Aligned-Boundary-Box, a simple & popular representation of 3D boundary box for collision detection. The concept was taken from the reference, Real-Time-Collision-Detection (RTCD), and in particular Ch. 4.2 (page 77): .
Point_t _max
Maximum point.
Point_t _min
Minimum point.
const Point_t & Min() const
Minimum point getter.
AABox(const T &min, const U &max)
Alternative ctor using template (3)
bool Contain(const Point_t &pt) const
Test if a point is contained within the box.
Class def header for a class Point and Vector.
virtual ~AABox()
Default destructor.
const Point_t & Max() const
Maximum point getter.