14 #ifndef BASICTOOL_GEOAABOX_H 15 #define BASICTOOL_GEOAABOX_H 45 AABox(
const double x_min,
const double y_min,
const double z_min,
46 const double x_max,
const double y_max,
const double z_max);
56 void Min(
const double x,
const double y,
const double z);
57 void Max(
const double x,
const double y,
const double z);
71 template <
class T,
class U>
AABox(
const T& min,
const U& max)
AABox()
Default constructor.
Class def header for a class HalfLine.
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.
virtual ~AABox()
Default destructor.
const Point_t & Max() const
Maximum point getter.