40 #ifndef GLM_GTC_quaternion
41 #define GLM_GTC_quaternion GLM_VERSION
45 #include "../gtc/half_float.hpp"
46 #include "../gtc/constants.hpp"
48 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
49 # pragma message("GLM: GLM_GTC_quaternion extension included")
77 value_type
const & z);
102 template <
typename T>
107 template <
typename T>
112 template <
typename T>
117 template <
typename T>
122 template <
typename T>
127 template <
typename T>
132 template <
typename T>
137 template <
typename T>
142 template <
typename T>
155 template <
typename T>
162 template <
typename T>
169 template <
typename T>
184 template <
typename T>
198 template <
typename T>
212 template <
typename T>
221 template <
typename T>
228 template <
typename T>
239 template <
typename T>
248 template <
typename T>
255 template <
typename valType>
262 template <
typename valType>
269 template <
typename valType>
276 template <
typename T>
283 template <
typename T>
290 template <
typename T>
297 template <
typename T>
304 template <
typename valType>
311 template <
typename valType>
323 template <
typename valType>
325 valType
const &
angle,
336 template <
typename valType>
338 valType
const &
angle,
381 #endif//GLM_GTC_quaternion
detail::tquat< mediump_float > mediump_quat
Definition: quaternion.hpp:369
detail::tquat< T > conjugate(detail::tquat< T > const &q)
Definition: quaternion.inl:530
detail::tquat< valType > angleAxis(valType const &angle, valType const &x, valType const &y, valType const &z)
Definition: quaternion.inl:759
detail::tquat< highp_float > highp_quat
Definition: quaternion.hpp:374
ctor
Definition: quaternion.hpp:58
detail::tmat4x4< T > mat4_cast(detail::tquat< T > const &x)
Definition: quaternion.inl:648
Definition: type_mat2x2.hpp:45
GLM_FUNC_DECL genType::value_type dot(genType const &x, genType const &y)
Definition: func_geometric.inl:132
Definition: _detail.hpp:38
detail::tquat< T > slerp(detail::tquat< T > const &x, detail::tquat< T > const &y, T const &a)
Returns the slurp interpolation between two quaternions.
Definition: quaternion.inl:492
tquat< T > & operator*=(value_type const &s)
Definition: quaternion.inl:148
valType yaw(detail::tquat< valType > const &x)
Definition: quaternion.inl:614
detail::tvec3< T > eulerAngles(detail::tquat< T > const &x)
Definition: quaternion.inl:579
Definition: _swizzle.hpp:43
value_type z
Definition: quaternion.hpp:64
T value_type
Definition: quaternion.hpp:60
GLM_FUNC_DECL half operator+(half const &s1, half const &s2)
Definition: type_half.inl:330
value_type x
Definition: quaternion.hpp:64
detail::tquat< float > quat
Definition: quaternion.hpp:344
detail::tquat< double > dquat
Definition: quaternion.hpp:359
detail::tquat< float > fquat
Definition: quaternion.hpp:354
GLM_FUNC_DECL half operator-(half const &s1, half const &s2)
Definition: type_half.inl:335
GLM_FUNC_DECL genType normalize(genType const &x)
Definition: func_geometric.inl:213
detail::tquat< T > lerp(detail::tquat< T > const &x, detail::tquat< T > const &y, T const &a)
Definition: quaternion.inl:477
valType roll(detail::tquat< valType > const &x)
Definition: quaternion.inl:588
valType pitch(detail::tquat< valType > const &x)
Definition: quaternion.inl:601
tquat()
Definition: quaternion.inl:41
Definition: quaternion.hpp:56
Definition: type_mat2x2.hpp:39
Definition: quaternion.hpp:58
detail::tquat< detail::half > hquat
Definition: quaternion.hpp:349
GLM_FUNC_DECL half operator*(half const &s1, half const &s2)
Definition: type_half.inl:340
GLM_FUNC_DECL size_type length() const
Definition: quaternion.inl:35
value_type & operator[](int i)
Definition: quaternion.inl:132
value_type w
Definition: quaternion.hpp:64
GLM_FUNC_DECL detail::tmat2x2< valType > inverse(detail::tmat2x2< valType > const &m)
Definition: type_mat2x2.hpp:40
value_type y
Definition: quaternion.hpp:64
detail::tvec3< valType > axis(detail::tquat< valType > const &x)
detail::tquat< T > quat_cast(detail::tmat3x3< T > const &x)
Definition: quaternion.inl:657
std::size_t size_type
Definition: quaternion.hpp:61
GLM_FUNC_DECL genTypeT mix(genTypeT const &x, genTypeT const &y, genTypeU const &a)
GLM_FUNC_DECL half operator/(half const &s1, half const &s2)
Definition: type_half.inl:345
tquat< T > & operator/=(value_type const &s)
Definition: quaternion.inl:161
GLM_FUNC_DECL genType::value_type length(genType const &x)
Definition: func_geometric.inl:34
Definition: type_mat2x2.hpp:49
valType angle(detail::tquat< valType > const &x)
detail::tmat3x3< T > mat3_cast(detail::tquat< T > const &x)
Definition: quaternion.inl:627
detail::tquat< lowp_float > lowp_quat
Definition: quaternion.hpp:364
#define GLM_FUNC_DECL
Definition: setup.hpp:678