A plane and related functions.
More...
#include <math/gzmath.hh>
A plane and related functions.
§ Plane() [1/4]
§ Plane() [2/4]
Constructor from a normal and a distanec.
- Parameters
-
[in] | _normal | The plane normal |
[in] | _offset | Offset along the normal |
§ Plane() [3/4]
Constructor.
- Parameters
-
[in] | _normal | The plane normal |
[in] | _size | Size of the plane |
[in] | _offset | Offset along the normal |
§ Plane() [4/4]
Plane |
( |
const ignition::math::Planed & |
_plane | ) |
|
Copy constructor for ignition::math::Plane.
- Parameters
-
§ ~Plane()
§ Distance()
double 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
§ Ign()
ignition::math::Planed Ign |
( |
| ) |
const |
Convert this to igntion::math::Planed.
- Returns
- This plane converted to ignition::math::Planed.
§ operator=() [1/2]
Equal operator.
- Parameters
-
- Returns
- itself
§ operator=() [2/2]
Plane& operator= |
( |
const ignition::math::Planed & |
_p | ) |
|
Equal operator for ignition::math::Plane.
- Parameters
-
- Returns
- itself
§ Set()
void 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 |
§ normal
§ size
The documentation for this class was generated from the following file: