17 #ifndef GAZEBO_MATH_BOX_HH_ 18 #define GAZEBO_MATH_BOX_HH_ 21 #include <ignition/math/Box.hh> 27 #pragma GCC diagnostic push 28 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 41 class GZ_MATH_VISIBLE
Box 62 public:
virtual ~
Box();
66 public:
double GetXLength()
const;
70 public:
double GetYLength()
const;
74 public:
double GetZLength()
const;
86 public:
void Merge(
const Box &_box);
90 public: ignition::math::Box Ign()
const;
95 public:
Box &operator=(
const ignition::math::Box &_b);
100 public:
Box &operator =(
const Box &_b);
105 public:
Box operator+(
const Box &_b)
const;
110 public:
const Box &operator+=(
const Box &_b);
115 public:
bool operator==(
const Box &_b)
const;
134 _out <<
"Min[" << _b.
min <<
"] Max[" << _b.
max <<
"]";
146 private:
enum Extent {EXTENT_NULL, EXTENT_FINITE};
150 private: Extent extent;
157 #pragma GCC diagnostic pop
Forward declarations for the common classes.
Definition: Animation.hh:33
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:44
Mathematical representation of a box and related functions.
Definition: Box.hh:41
friend std::ostream & operator<<(std::ostream &_out, const gazebo::math::Box &_b)
Output operator.
Definition: Box.hh:131
Vector3 min
Minimum corner of the box.
Definition: Box.hh:140
static const double GAZEBO_DEPRECATED(8.0) MAX_D
Double maximum value. This value will be similar to 1.79769e+308.
Definition: Helpers.hh:140
Vector3 max
Maximum corner of the box.
Definition: Box.hh:143
bool const T & _b
Definition: Helpers.hh:258