Function to directly rotate a vector. More...
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) |
Function to directly rotate a vector.
<glm/gtx/rotate_vector.hpp> need to be included to use these functionalities.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
x | A first vector |
y | A second vector |
a | Interpolation factor. The interpolation is defined beyond the range [0, 1]. |