22 #ifndef _WAVE_GAZEBO_PLUGINS_GEOMETRY_HH_ 23 #define _WAVE_GAZEBO_PLUGINS_GEOMETRY_HH_ 25 #include <ignition/math/Vector2.hh> 26 #include <ignition/math/Vector3.hh> 40 public:
static ignition::math::Vector2d
41 Normalize(
const ignition::math::Vector2d& _v);
47 public:
static ignition::math::Vector3d
48 Normalize(
const ignition::math::Vector3d& _v);
57 public:
static ignition::math::Vector3d
Normal(
58 const ignition::math::Vector3d& _v0,
59 const ignition::math::Vector3d& _v1,
60 const ignition::math::Vector3d& _v2);
64 #endif // _WAVE_GAZEBO_PLUGINS_GEOMETRY_HH_ 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.
static ignition::math::Vector2d Normalize(const ignition::math::Vector2d &_v)
Normalise a Vector2 (i.e. ensure it has unit length)
A collection of static methods concerning linear geometry.