KudanAR - iOS  1.6.0
glm::tquat< T, P > Struct Template Reference

Public Types

typedef tquat< T, P > type
 
typedef T value_type
 
typedef length_t length_type
 

Public Member Functions

GLM_FUNC_DECL GLM_CONSTEXPR length_type length () const
 Return the count of components of a quaternion.
 
GLM_FUNC_DECL T & operator[] (length_type i)
 
GLM_FUNC_DECL T const & operator[] (length_type i) const
 
GLM_FUNC_DECL tquat (tquat< T, P > const &q)
 
template<precision Q>
GLM_FUNC_DECL tquat (tquat< T, Q > const &q)
 
GLM_FUNC_DECL tquat (ctor)
 
GLM_FUNC_DECL tquat (T const &s, tvec3< T, P > const &v)
 
GLM_FUNC_DECL tquat (T const &w, T const &x, T const &y, T const &z)
 
template<typename U , precision Q>
GLM_FUNC_DECL tquat (tquat< U, Q > const &q)
 
GLM_FUNC_DECL tquat (tvec3< T, P > const &u, tvec3< T, P > const &v)
 
GLM_FUNC_DECL tquat (tvec3< T, P > const &eulerAngles)
 Build a quaternion from euler angles (pitch, yaw, roll), in radians.
 
GLM_FUNC_DECL tquat (tmat3x3< T, P > const &m)
 
GLM_FUNC_DECL tquat (tmat4x4< T, P > const &m)
 
GLM_FUNC_DECL tquat< T, P > & operator= (tquat< T, P > const &m)
 
template<typename U >
GLM_FUNC_DECL tquat< T, P > & operator= (tquat< U, P > const &m)
 
template<typename U >
GLM_FUNC_DECL tquat< T, P > & operator+= (tquat< U, P > const &q)
 
template<typename U >
GLM_FUNC_DECL tquat< T, P > & operator*= (tquat< U, P > const &q)
 
template<typename U >
GLM_FUNC_DECL tquat< T, P > & operator*= (U s)
 
template<typename U >
GLM_FUNC_DECL tquat< T, P > & operator/= (U s)
 
template<precision Q>
GLM_FUNC_QUALIFIER tquat (tquat< T, Q > const &q)
 
template<typename U , precision Q>
GLM_FUNC_QUALIFIER tquat (tquat< U, Q > const &q)
 
template<typename U >
GLM_FUNC_QUALIFIER tquat< T, P > & operator= (tquat< U, P > const &q)
 
template<typename U >
GLM_FUNC_QUALIFIER tquat< T, P > & operator+= (tquat< U, P > const &q)
 
template<typename U >
GLM_FUNC_QUALIFIER tquat< T, P > & operator*= (tquat< U, P > const &r)
 
template<typename U >
GLM_FUNC_QUALIFIER tquat< T, P > & operator*= (U s)
 
template<typename U >
GLM_FUNC_QUALIFIER tquat< T, P > & operator/= (U s)
 

Public Attributes

x
 
y
 
z
 
w
 

Constructor & Destructor Documentation

◆ tquat()

template<typename T , precision P>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( tvec3< T, P > const &  u,
tvec3< T, P > const &  v 
)
explicit

Create a quaternion from two normalized axis

Parameters
uA first normalized axis
vA second normalized axis
See also
GLM_GTC_quaternion
https://lolengine.net/blog/2013/09/18/beautiful-maths-quaternion-from-vectors

The documentation for this struct was generated from the following files: