0.9.6
rotate_normalized_axis.hpp
Go to the documentation of this file.
1 
40 #pragma once
41 
42 // Dependency:
43 #include "../glm.hpp"
44 #include "../gtc/epsilon.hpp"
45 #include "../gtc/quaternion.hpp"
46 
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTX_rotate_normalized_axis extension included")
49 #endif
50 
51 namespace glm
52 {
55 
67  template <typename T, precision P>
68  GLM_FUNC_DECL tmat4x4<T, P> rotateNormalizedAxis(
69  tmat4x4<T, P> const & m,
70  T const & angle,
71  tvec3<T, P> const & axis);
72 
80  template <typename T, precision P>
81  GLM_FUNC_DECL tquat<T, P> rotateNormalizedAxis(
82  tquat<T, P> const & q,
83  T const & angle,
84  tvec3<T, P> const & axis);
85 
87 }//namespace glm
88 
89 #include "rotate_normalized_axis.inl"
Definition: _noise.hpp:31
GLM_FUNC_DECL tquat< T, P > rotateNormalizedAxis(tquat< T, P > const &q, T const &angle, tvec3< T, P > const &axis)
Rotates a quaternion from a vector of 3 components normalized axis and an angle.
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
GLM_FUNC_DECL tvec3< T, P > axis(tquat< T, P > const &x)
Returns the q rotation axis.