Functions
GLM_GTX_vector_angle

Compute angle between vectors. More...

Collaboration diagram for GLM_GTX_vector_angle:

Functions

template<typename vecType >
GLM_FUNC_DECL vecType::value_type glm::angle (vecType const &x, vecType const &y)
 
template<typename T , precision P>
GLM_FUNC_DECL T glm::orientedAngle (detail::tvec2< T, P > const &x, detail::tvec2< T, P > const &y)
 
template<typename T , precision P>
GLM_FUNC_DECL T glm::orientedAngle (detail::tvec3< T, P > const &x, detail::tvec3< T, P > const &y, detail::tvec3< T, P > const &ref)
 

Detailed Description

Compute angle between vectors.

<glm/gtx/vector_angle.hpp> need to be included to use these functionalities.

Function Documentation

◆ angle()

template<typename vecType >
GLM_FUNC_DECL vecType::value_type glm::angle ( vecType const &  x,
vecType const &  y 
)

Returns the absolute angle between two vectors Parameters need to be normalized.

See also
GLM_GTX_vector_angle extension

◆ orientedAngle() [1/2]

template<typename T , precision P>
GLM_FUNC_DECL T glm::orientedAngle ( detail::tvec2< T, P > const &  x,
detail::tvec2< T, P > const &  y 
)

Returns the oriented angle between two 2d vectors Parameters need to be normalized.

See also
GLM_GTX_vector_angle extension.

◆ orientedAngle() [2/2]

template<typename T , precision P>
GLM_FUNC_DECL T glm::orientedAngle ( detail::tvec3< T, P > const &  x,
detail::tvec3< T, P > const &  y,
detail::tvec3< T, P > const &  ref 
)

Returns the oriented angle between two 3d vectors based from a reference axis. Parameters need to be normalized.

See also
GLM_GTX_vector_angle extension.


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:26