Functions
GLM_GTX_rotate_vector
GTX Extensions (Experimental)

Function to directly rotate a vector. More...

Collaboration diagram for GLM_GTX_rotate_vector:

Functions

template<typename T , precision P>
GLM_FUNC_DECL detail::tmat4x4
< T, P > 
glm::orientation (detail::tvec3< T, P > const &Normal, detail::tvec3< T, P > const &Up)
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec2< T, P > glm::rotate (detail::tvec2< T, P > const &v, T const &angle)
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, P > glm::rotate (detail::tvec3< T, P > const &v, T const &angle, detail::tvec3< T, P > const &normal)
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4< T, P > glm::rotate (detail::tvec4< T, P > const &v, T const &angle, detail::tvec3< T, P > const &normal)
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, P > glm::rotateX (detail::tvec3< T, P > const &v, T const &angle)
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4< T, P > glm::rotateX (detail::tvec4< T, P > const &v, T const &angle)
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, P > glm::rotateY (detail::tvec3< T, P > const &v, T const &angle)
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4< T, P > glm::rotateY (detail::tvec4< T, P > const &v, T const &angle)
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, P > glm::rotateZ (detail::tvec3< T, P > const &v, T const &angle)
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4< T, P > glm::rotateZ (detail::tvec4< T, P > const &v, T const &angle)
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, P > glm::slerp (detail::tvec3< T, P > const &x, detail::tvec3< T, P > const &y, T const &a)

Detailed Description

Function to directly rotate a vector.

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


Function Documentation

template<typename T , precision P>
GLM_FUNC_DECL detail::tmat4x4<T, P> glm::orientation ( detail::tvec3< T, P > const &  Normal,
detail::tvec3< T, P > const &  Up 
)

Build a rotation matrix from a normal and a up vector. From GLM_GTX_rotate_vector extension.

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec2<T, P> glm::rotate ( detail::tvec2< T, P > const &  v,
T const &  angle 
)

Rotate a two dimensional vector. From GLM_GTX_rotate_vector extension.

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3<T, P> glm::rotate ( detail::tvec3< T, P > const &  v,
T const &  angle,
detail::tvec3< T, P > const &  normal 
)

Rotate a three dimensional vector around an axis. From GLM_GTX_rotate_vector extension.

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4<T, P> glm::rotate ( detail::tvec4< T, P > const &  v,
T const &  angle,
detail::tvec3< T, P > const &  normal 
)

Rotate a four dimensional vector around an axis. From GLM_GTX_rotate_vector extension.

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3<T, P> glm::rotateX ( detail::tvec3< T, P > const &  v,
T const &  angle 
)

Rotate a three dimensional vector around the X axis. From GLM_GTX_rotate_vector extension.

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4<T, P> glm::rotateX ( detail::tvec4< T, P > const &  v,
T const &  angle 
)

Rotate a four dimentionnals vector around the X axis. From GLM_GTX_rotate_vector extension.

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3<T, P> glm::rotateY ( detail::tvec3< T, P > const &  v,
T const &  angle 
)

Rotate a three dimensional vector around the Y axis. From GLM_GTX_rotate_vector extension.

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4<T, P> glm::rotateY ( detail::tvec4< T, P > const &  v,
T const &  angle 
)

Rotate a four dimensional vector around the X axis. From GLM_GTX_rotate_vector extension.

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3<T, P> glm::rotateZ ( detail::tvec3< T, P > const &  v,
T const &  angle 
)

Rotate a three dimensional vector around the Z axis. From GLM_GTX_rotate_vector extension.

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4<T, P> glm::rotateZ ( detail::tvec4< T, P > const &  v,
T const &  angle 
)

Rotate a four dimensional vector around the X axis. From GLM_GTX_rotate_vector extension.

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

Returns Spherical interpolation between two vectors

Parameters:
xA first vector
yA second vector
aInterpolation factor. The interpolation is defined beyond the range [0, 1].
See also:
GLM_GTC_quaternion


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sat Jul 23 2016 11:44:30