Mathematical representation of a box and related functions.
More...
#include <math/gzmath.hh>
Mathematical representation of a box and related functions.
Constructor.
This constructor will compute the box's minumum and maximum corners based on the two arguments.
- Parameters
-
[in] | _vec1 | One corner of the box |
[in] | _vec2 | Another corner of the box |
Box |
( |
const ignition::math::Box & |
_box | ) |
|
Ignition math copy constructor.
- Parameters
-
[in] | _box | Ignition box to convert |
Copy Constructor.
- Parameters
-
Check if a point lies inside or on the box.
- Parameters
-
- Returns
- True if the point is inside or on the box.
Get the box center.
- Returns
- The center position of the box
Get the size of the box.
- Returns
- Size of the box
double GetXLength |
( |
| ) |
const |
Get the length along the x dimension.
- Returns
- Double value of the length in the x dimension
double GetYLength |
( |
| ) |
const |
Get the length along the y dimension.
- Returns
- Double value of the length in the y dimension
double GetZLength |
( |
| ) |
const |
Get the length along the z dimension.
- Returns
- Double value of the length in the z dimension
ignition::math::Box Ign |
( |
| ) |
const |
Convert this box to an ignition::math::Box.
- Returns
- This Box as an ignition::math::Box.
void Merge |
( |
const Box & |
_box | ) |
|
Merge a box with this box.
- Parameters
-
[in] | _box | Box to add to this box |
Box operator+ |
( |
const Box & |
_b | ) |
const |
Addition operator.
result = this + _b
- Parameters
-
- Returns
- The new box
const Box& operator+= |
( |
const Box & |
_b | ) |
|
Addition set operator.
this = this + _b
- Parameters
-
- Returns
- This new box
Subtract a vector from the min and max values.
- Parameters
-
_v | The vector to use during subtraction |
- Returns
- The new box
Box& operator= |
( |
const ignition::math::Box & |
_b | ) |
|
Assignment operator for ignition math.
- Parameters
-
- Returns
- The new box
Box& operator= |
( |
const Box & |
_b | ) |
|
Assignment operator.
Set this box to the parameter
- Parameters
-
- Returns
- The new box.
bool operator== |
( |
const Box & |
_b | ) |
const |
Equality test operatoer.
- Parameters
-
- Returns
- True if equal
Output operator.
- Parameters
-
[in] | _out | Output stream |
[in] | _b | Box to output to the stream |
- Returns
- The stream
Maximum corner of the box.
Minimum corner of the box.
The documentation for this class was generated from the following file: