Mathematical representation of a box and related functions.
More...
#include <math/gzmath.hh>
Mathematical representation of a box and related functions.
gazebo::math::Box::Box |
( |
| ) |
|
gazebo::math::Box::Box |
( |
const Vector3 & |
_vec1, |
|
|
const Vector3 & |
_vec2 |
|
) |
| |
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 |
gazebo::math::Box::Box |
( |
const Box & |
_b | ) |
|
Copy Constructor.
- Parameters
-
virtual gazebo::math::Box::~Box |
( |
| ) |
|
|
virtual |
Get the box center.
- Returns
- The center position of the box
Get the size of the box.
- Returns
- Size of the box
double gazebo::math::Box::GetXLength |
( |
| ) |
const |
Get the length along the x dimension.
- Returns
- Double value of the length in the x dimension
double gazebo::math::Box::GetYLength |
( |
| ) |
const |
Get the length along the y dimension.
- Returns
- Double value of the length in the y dimension
double gazebo::math::Box::GetZLength |
( |
| ) |
const |
Get the length along the z dimension.
- Returns
- Double value of the length in the z dimension
void gazebo::math::Box::Merge |
( |
const Box & |
_box | ) |
|
Merge a box with this box.
- Parameters
-
[in] | _box | Box to add to this box |
Box gazebo::math::Box::operator+ |
( |
const Box & |
_b | ) |
const |
Addition operator.
result = this + _b
- Parameters
-
- Returns
- The new box
const Box& gazebo::math::Box::operator+= |
( |
const Box & |
_b | ) |
|
Addition set operator.
this = this + _b
- Parameters
-
- Returns
- This new box
Box gazebo::math::Box::operator- |
( |
const Vector3 & |
_v | ) |
|
Subtract a vector from the min and max values.
- Parameters
-
_v | The vector to use during subtraction |
- Returns
- The new box
Box& gazebo::math::Box::operator= |
( |
const Box & |
_b | ) |
|
Assignment operator.
Set this box to the parameter
- Parameters
-
- Returns
- The new box.
bool gazebo::math::Box::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: