A plane and related functions.
More...
#include <math/gzmath.hh>
A plane and related functions.
gazebo::math::Plane::Plane |
( |
| ) |
|
gazebo::math::Plane::Plane |
( |
const Vector3 & |
_normal, |
|
|
double |
_offset = 0.0 |
|
) |
| |
Constructor from a normal and a distanec.
- Parameters
-
[in] | _normal | The plane normal |
[in] | _offset | Offset along the normal |
gazebo::math::Plane::Plane |
( |
const Vector3 & |
_normal, |
|
|
const Vector2d & |
_size, |
|
|
double |
_offset |
|
) |
| |
Constructor.
- Parameters
-
[in] | _normal | The plane normal |
[in] | _size | Size of the plane |
[in] | _offset | Offset along the normal |
gazebo::math::Plane::Plane |
( |
const ignition::math::Planed & |
_plane | ) |
|
Copy constructor for ignition::math::Plane.
- Parameters
-
virtual gazebo::math::Plane::~Plane |
( |
| ) |
|
|
virtual |
double gazebo::math::Plane::Distance |
( |
const Vector3 & |
_origin, |
|
|
const Vector3 & |
_dir |
|
) |
| const |
Get distance to the plane give an origin and direction.
- Parameters
-
[in] | _origin | the origin |
[in] | _dir | a direction |
- Returns
- the shortest distance
ignition::math::Planed gazebo::math::Plane::Ign |
( |
| ) |
const |
Convert this to igntion::math::Planed.
- Returns
- This plane converted to ignition::math::Planed.
Plane& gazebo::math::Plane::operator= |
( |
const Plane & |
_p | ) |
|
Equal operator.
- Parameters
-
- Returns
- itself
Plane& gazebo::math::Plane::operator= |
( |
const ignition::math::Planed & |
_p | ) |
|
Equal operator for ignition::math::Plane.
- Parameters
-
- Returns
- itself
void gazebo::math::Plane::Set |
( |
const Vector3 & |
_normal, |
|
|
const Vector2d & |
_size, |
|
|
double |
offset |
|
) |
| |
Set the plane.
- Parameters
-
[in] | _normal | The plane normal |
[in] | _size | Size of the plane |
[in] | _offset | Offset along the normal |
double gazebo::math::Plane::d |
Vector3 gazebo::math::Plane::normal |
The documentation for this class was generated from the following file: