Functions
GLM_GTX_rotate_vector

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, Pglm::orientation (detail::tvec3< T, P > const &Normal, detail::tvec3< T, P > const &Up)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec2< T, Pglm::rotate (detail::tvec2< T, P > const &v, T const &angle)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, Pglm::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, Pglm::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, Pglm::rotateX (detail::tvec3< T, P > const &v, T const &angle)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4< T, Pglm::rotateX (detail::tvec4< T, P > const &v, T const &angle)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, Pglm::rotateY (detail::tvec3< T, P > const &v, T const &angle)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4< T, Pglm::rotateY (detail::tvec4< T, P > const &v, T const &angle)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, Pglm::rotateZ (detail::tvec3< T, P > const &v, T const &angle)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4< T, Pglm::rotateZ (detail::tvec4< T, P > const &v, T const &angle)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, Pglm::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

◆ orientation()

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.

◆ rotate() [1/3]

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.

◆ rotate() [2/3]

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.

◆ rotate() [3/3]

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.

◆ rotateX() [1/2]

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.

◆ rotateX() [2/2]

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.

◆ rotateY() [1/2]

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.

◆ rotateY() [2/2]

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.

◆ rotateZ() [1/2]

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.

◆ rotateZ() [2/2]

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.

◆ slerp()

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 Thu Jul 25 2024 02:50:26