17 #ifndef _IGNITION_BOX_HH_
18 #define _IGNITION_BOX_HH_
52 public:
Box(
double _vec1X,
double _vec1Y,
double _vec1Z,
53 double _vec2X,
double _vec2Y,
double _vec2Z);
57 public:
Box(
const Box &_b);
60 public:
virtual ~
Box();
64 public:
double XLength()
const;
68 public:
double YLength()
const;
72 public:
double ZLength()
const;
84 public:
void Merge(
const Box &_box);
89 public:
Box &operator=(
const Box &_b);
94 public:
Box operator+(
const Box &_b)
const;
99 public:
const Box &operator+=(
const Box &_b);
104 public:
bool operator==(
const Box &_b)
const;
109 public:
bool operator!=(
const Box &_b)
const;
123 _out <<
"Min[" << _b.
Min() <<
"] Max[" << _b.
Max() <<
"]";
129 public:
const Vector3d &Min()
const;
133 public:
const Vector3d &Max()
const;
148 public:
bool Intersects(
const Box &_box)
const;
153 public:
bool Contains(
const Vector3d &_p)
const;
const Vector3d & Max() const
Get the maximum corner.
#define IGNITION_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:408
Mathematical representation of a box and related functions.
Definition: Box.hh:33
friend std::ostream & operator<<(std::ostream &_out, const ignition::math::Box &_b)
Output operator.
Definition: Box.hh:120
const Vector3d & Min() const
Get the minimum corner.
Definition: BoxPrivate.hh:28