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... | |
| Plane (const ignition::math::Planed &_plane) | |
| Copy constructor for ignition::math::Plane. 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... | |
| ignition::math::Planed | Ign () const |
| Convert this to igntion::math::Planed. More... | |
| Plane & | operator= (const Plane &_p) |
| Equal operator. More... | |
| Plane & | operator= (const ignition::math::Planed &_p) |
| Equal operator for ignition::math::Plane. 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.
| Plane | ( | ) |
Constructor.
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 |
| Plane | ( | const ignition::math::Planed & | _plane | ) |
Copy constructor for ignition::math::Plane.
| [in] | _plane | Plane to copy |
|
virtual |
Destructor.
Get distance to the plane give an origin and direction.
| [in] | _origin | the origin |
| [in] | _dir | a direction |
| ignition::math::Planed Ign | ( | ) | const |
Convert this to igntion::math::Planed.
| Plane& operator= | ( | const ignition::math::Planed & | _p | ) |
Equal operator for ignition::math::Plane.
| _p | Ignition math plane |
Set the plane.
| [in] | _normal | The plane normal |
| [in] | _size | Size of the plane |
| [in] | _offset | Offset along the normal |
| double d |
Plane offset.