A collection of static methods concerning linear geometry. More...
#include <Geometry.hh>
Static Public Member Functions | |
static ignition::math::Vector3d | Normal (const ignition::math::Vector3d &_v0, const ignition::math::Vector3d &_v1, const ignition::math::Vector3d &_v2) |
Compute the (normalised) normal to the plane defined by a triangle. More... | |
static ignition::math::Vector2d | Normalize (const ignition::math::Vector2d &_v) |
Normalise a Vector2 (i.e. ensure it has unit length) More... | |
static ignition::math::Vector3d | Normalize (const ignition::math::Vector3d &_v) |
Normalise a Vector3 (i.e. ensure it has unit length) More... | |
A collection of static methods concerning linear geometry.
Definition at line 34 of file Geometry.hh.
|
static |
Compute the (normalised) normal to the plane defined by a triangle.
[in] | _p0 | Point at the first vertex. |
[in] | _p1 | Point at the second vertex. |
[in] | _p2 | Point at the third vertex. |
Definition at line 77 of file Geometry.cc.
|
static |
Normalise a Vector2 (i.e. ensure it has unit length)
[in] | _v | The vector to normalise. |
Definition at line 58 of file Geometry.cc.
|
static |
Normalise a Vector3 (i.e. ensure it has unit length)
[in] | _v | The vector to normalise. |
Definition at line 68 of file Geometry.cc.