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