FlukyEngine
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
glm::qua< T, Q > Struct Template Reference
Collaboration diagram for glm::qua< T, Q >:
Collaboration graph
[legend]

Public Types

typedef qua< T, Q > type
 
typedef T value_type
 
typedef length_t length_type
 

Public Member Functions

GLM_FUNC_DECL GLM_CONSTEXPR T & operator[] (length_type i)
 
GLM_FUNC_DECL GLM_CONSTEXPR T const & operator[] (length_type i) const
 
GLM_FUNC_DECL GLM_CONSTEXPR qua (qua< T, Q > const &q) GLM_DEFAULT
 
template<qualifier P>
GLM_FUNC_DECL GLM_CONSTEXPR qua (qua< T, P > const &q)
 
GLM_FUNC_DECL GLM_CONSTEXPR qua (T s, vec< 3, T, Q > const &v)
 
GLM_FUNC_DECL GLM_CONSTEXPR qua (T w, T x, T y, T z)
 
template<typename U , qualifier P>
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT qua (qua< U, P > const &q)
 
GLM_FUNC_DECL qua (vec< 3, T, Q > const &u, vec< 3, T, Q > const &v)
 Explicit conversion operators. More...
 
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT qua (vec< 3, T, Q > const &eulerAngles)
 Build a quaternion from euler angles (pitch, yaw, roll), in radians.
 
GLM_FUNC_DECL GLM_EXPLICIT qua (mat< 3, 3, T, Q > const &q)
 
GLM_FUNC_DECL GLM_EXPLICIT qua (mat< 4, 4, T, Q > const &q)
 
GLM_FUNC_DECL GLM_CONSTEXPR qua< T, Q > & operator= (qua< T, Q > const &q) GLM_DEFAULT
 
template<typename U >
GLM_FUNC_DECL GLM_CONSTEXPR qua< T, Q > & operator= (qua< U, Q > const &q)
 
template<typename U >
GLM_FUNC_DECL GLM_CONSTEXPR qua< T, Q > & operator+= (qua< U, Q > const &q)
 
template<typename U >
GLM_FUNC_DECL GLM_CONSTEXPR qua< T, Q > & operator-= (qua< U, Q > const &q)
 
template<typename U >
GLM_FUNC_DECL GLM_CONSTEXPR qua< T, Q > & operator*= (qua< U, Q > const &q)
 
template<typename U >
GLM_FUNC_DECL GLM_CONSTEXPR qua< T, Q > & operator*= (U s)
 
template<typename U >
GLM_FUNC_DECL GLM_CONSTEXPR qua< T, Q > & operator/= (U s)
 
template<qualifier P>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua (qua< T, P > const &q)
 
template<typename U, qualifier P>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua (qua< U, P > const &q)
 
template<typename U >
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua< T, Q > & operator= (qua< U, Q > const &q)
 
template<typename U >
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua< T, Q > & operator+= (qua< U, Q > const &q)
 
template<typename U >
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua< T, Q > & operator-= (qua< U, Q > const &q)
 
template<typename U >
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua< T, Q > & operator*= (qua< U, Q > const &r)
 
template<typename U >
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua< T, Q > & operator*= (U s)
 
template<typename U >
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua< T, Q > & operator/= (U s)
 

Static Public Member Functions

static GLM_FUNC_DECL GLM_CONSTEXPR length_type length ()
 Return the count of components of a quaternion.
 

Public Attributes

x
 
y
 
z
 
w
 

Constructor & Destructor Documentation

◆ qua()

template<typename T , qualifier Q>
GLM_FUNC_QUALIFIER glm::qua< T, Q >::qua ( vec< 3, T, Q > const &  u,
vec< 3, T, Q > const &  v 
)

Explicit conversion operators.

Create a quaternion from two normalized axis

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

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