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)
78 { o <<
"AABox Min " << a.
Min() <<
" Max " << a.
Max();
return o; }
process_name opflash particleana ie ie ie z
AABox()
Default constructor.
process_name opflash particleana ie x
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)
process_name opflash particleana ie ie y
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.
friend std::ostream & operator<<(std::ostream &o,::geoalgo::AABox const &a)
Streamer.