14 #ifndef BASICTOOL_GEOAABOX_H 15 #define BASICTOOL_GEOAABOX_H 59 void Min(
double const x,
double const y,
double const z);
60 void Max(
double const x,
double const y,
double const 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.
Class def header for a class Point and Vector.
Point_t const & Max() const
Maximum point getter.
bool Contain(Point_t const &pt) const
Test if a point is contained within the box.
virtual ~AABox()
Default destructor.
AABox(T const &min, U const &max)
Alternative ctor using template (3)
Point_t const & Min() const
Minimum point getter.