A plane and related functions. More...
#include <math/gzmath.hh>
Public Member Functions | |
Plane () | |
Constructor. More... | |
Plane (const Vector3 &_normal, double _offset=0.0) | |
Constructor from a normal and a distanec. More... | |
Plane (const Vector3 &_normal, const Vector2d &_size, double _offset) | |
Constructor. More... | |
virtual | ~Plane () |
Destructor. More... | |
double | Distance (const Vector3 &_origin, const Vector3 &_dir) const |
Get distance to the plane give an origin and direction. More... | |
Plane & | operator= (const Plane &_p) |
Equal operator. More... | |
void | Set (const Vector3 &_normal, const Vector2d &_size, double offset) |
Set the plane. More... | |
Public Attributes | |
double | d |
Plane offset. More... | |
Vector3 | normal |
Plane normal. More... | |
Vector2d | size |
Plane size. More... | |
A plane and related functions.
gazebo::math::Plane::Plane | ( | ) |
Constructor.
gazebo::math::Plane::Plane | ( | const Vector3 & | _normal, |
double | _offset = 0.0 |
||
) |
Constructor from a normal and a distanec.
[in] | _normal | The plane normal |
[in] | _offset | Offset along the normal |
Constructor.
[in] | _normal | The plane normal |
[in] | _size | Size of the plane |
[in] | _offset | Offset along the normal |
|
virtual |
Destructor.
Get distance to the plane give an origin and direction.
[in] | _origin | the origin |
[in] | _dir | a direction |
Equal operator.
_p | another plane |
Set the plane.
[in] | _normal | The plane normal |
[in] | _size | Size of the plane |
[in] | _offset | Offset along the normal |
double gazebo::math::Plane::d |
Plane offset.