Mathematical representation of a box which can be arbitrarily positioned and rotated. More...
#include <OrientedBox.hh>
Public Member Functions | |
| OrientedBox () | |
| Default constructor. More... | |
| OrientedBox (const Vector3< T > &_size, const Pose3< T > &_pose) | |
| Constructor which takes size and pose. More... | |
| OrientedBox (const Vector3< T > &_size) | |
| Constructor which takes only the size. More... | |
| OrientedBox (const OrientedBox< T > &_b) | |
| Copy constructor. More... | |
| virtual | ~OrientedBox () |
| Destructor. More... | |
| bool | Contains (const Vector3d &_p) const |
| Check if a point lies inside the box. More... | |
| bool | operator!= (const OrientedBox< T > &_b) const |
| Inequality test operator. More... | |
| OrientedBox & | operator= (const OrientedBox< T > &_b) |
| Assignment operator. More... | |
| bool | operator== (const OrientedBox< T > &_b) const |
| Equality test operator. More... | |
| const Pose3< T > & | Pose () const |
| Get the box pose, which is the pose of its center. More... | |
| void | Pose (Pose3< T > &_pose) |
| Set the box pose. More... | |
| const Vector3< T > & | Size () const |
| Get the size of the box. More... | |
| void | Size (Vector3< T > &_size) |
| Set the box size. More... | |
| T | XLength () const |
| Get the length along the x dimension. More... | |
| T | YLength () const |
| Get the length along the y dimension. More... | |
| T | ZLength () const |
| Get the length along the z dimension. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &_out, const OrientedBox< T > &_b) |
| Output operator. More... | |
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. |
References ignition::math::Vector3< T >::X().
|
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.
|
inline |
Set the box pose.
| [in] | _pose | Box pose. |
|
inline |
Get the size of the box.
|
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. |
References ignition::math::Vector3< T >::Abs().
|
inline |
Get the length along the x dimension.
|
inline |
Get the length along the y dimension.
|
inline |
Get the length along the z dimension.
|
friend |
Output operator.
| [in] | _out | Output stream |
| [in] | _b | OrientedBox to output to the stream |