0.9.9 API documenation
Functions
rotate_vector.hpp File Reference

GLM_GTX_rotate_vector More...

Go to the source code of this file.

Functions

template<typename T , qualifier P>
GLM_FUNC_DECL mat< 4, 4, T, P > orientation (vec< 3, T, P > const &Normal, vec< 3, T, P > const &Up)
 Build a rotation matrix from a normal and a up vector. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL vec< 2, T, P > rotate (vec< 2, T, P > const &v, T const &angle)
 Rotate a two dimensional vector. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL vec< 3, T, P > rotate (vec< 3, T, P > const &v, T const &angle, vec< 3, T, P > const &normal)
 Rotate a three dimensional vector around an axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL vec< 4, T, P > rotate (vec< 4, T, P > const &v, T const &angle, vec< 3, T, P > const &normal)
 Rotate a four dimensional vector around an axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL vec< 3, T, P > rotateX (vec< 3, T, P > const &v, T const &angle)
 Rotate a three dimensional vector around the X axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL vec< 4, T, P > rotateX (vec< 4, T, P > const &v, T const &angle)
 Rotate a four dimensional vector around the X axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL vec< 3, T, P > rotateY (vec< 3, T, P > const &v, T const &angle)
 Rotate a three dimensional vector around the Y axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL vec< 4, T, P > rotateY (vec< 4, T, P > const &v, T const &angle)
 Rotate a four dimensional vector around the Y axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL vec< 3, T, P > rotateZ (vec< 3, T, P > const &v, T const &angle)
 Rotate a three dimensional vector around the Z axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL vec< 4, T, P > rotateZ (vec< 4, T, P > const &v, T const &angle)
 Rotate a four dimensional vector around the Z axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL vec< 3, T, P > slerp (vec< 3, T, P > const &x, vec< 3, T, P > const &y, T const &a)
 Returns Spherical interpolation between two vectors. More...
 

Detailed Description

GLM_GTX_rotate_vector

See also
GLM Core (dependence)
GLM_GTX_transform (dependence)

Definition in file rotate_vector.hpp.