Mathematical representation of a box which can be arbitrarily positioned and rotated. More...
#include <OrientedBox.hh>
Public Member Functions | |
| OrientedBox () | |
| Default constructor. | |
| OrientedBox (const OrientedBox< T > &_b) | |
| Copy constructor. | |
| OrientedBox (const Vector3< T > &_size) | |
| Constructor which takes only the size. | |
| OrientedBox (const Vector3< T > &_size, const Pose3< T > &_pose) | |
| Constructor which takes size and pose. | |
| virtual | ~OrientedBox () |
| Destructor. | |
| bool | Contains (const Vector3d &_p) const |
| Check if a point lies inside the box. | |
| bool | operator!= (const OrientedBox< T > &_b) const |
| Inequality test operator. | |
| OrientedBox & | operator= (const OrientedBox< T > &_b) |
| Assignment operator. | |
| bool | operator== (const OrientedBox< T > &_b) const |
| Equality test operator. | |
| const Pose3< T > & | Pose () const |
| Get the box pose, which is the pose of its center. | |
| void | Pose (Pose3< T > &_pose) |
| Set the box pose. | |
| const Vector3< T > & | Size () const |
| Get the size of the box. | |
| void | Size (Vector3< T > &_size) |
| Set the box size. | |
| T | XLength () const |
| Get the length along the x dimension. | |
| T | YLength () const |
| Get the length along the y dimension. | |
| T | ZLength () const |
| Get the length along the z dimension. | |
Mathematical representation of a box which can be arbitrarily positioned and rotated.
|
inline |
Default constructor.
|
inline |
|
inlineexplicit |
Constructor which takes only the size.
| [in] | _size | Box size, in its own coordinate frame. Its absolute value will be taken, so the size is non-negative. |
|
inline |
Copy constructor.
| [in] | _b | OrientedBox to copy. |
|
inlinevirtual |
Destructor.
|
inline |
Check if a point lies inside the box.
| [in] | _p | Point to check. |
|
inline |
|
inline |
Assignment operator.
Set this box to the parameter
| [in] | _b | OrientedBox to copy |
|
inline |
|
inline |
Get the box pose, which is the pose of its center.
Referenced by ignition::math::IGNITION_MATH_VERSION_NAMESPACE::OrientedBox< int >::operator<<.
|
inline |
Set the box pose.
| [in] | _pose | Box pose. |
|
inline |
Get the size of the box.
Referenced by ignition::math::IGNITION_MATH_VERSION_NAMESPACE::OrientedBox< int >::operator<<.
|
inline |
Set the box size.
| [in] | _size | Box size, in its own coordinate frame. Its absolute value will be taken, so the size is non-negative. |
|
inline |
Get the length along the x dimension.
|
inline |
Get the length along the y dimension.
|
inline |
Get the length along the z dimension.