Cinder  0.9.1
Public Types | Public Member Functions | Public Attributes | List of all members
glm::tquat< T, P > Struct Template Reference

#include <quaternion.hpp>

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
 
GLM_FUNC_DECL T & operator[] (length_type i)
 
GLM_FUNC_DECL T const & operator[] (length_type i) const
 
GLM_FUNC_DECL tquat ()
 
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)
 
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
 

Member Typedef Documentation

template<typename T , precision P>
typedef tquat<T, P> glm::tquat< T, P >::type
template<typename T , precision P>
typedef T glm::tquat< T, P >::value_type
template<typename T , precision P>
typedef length_t glm::tquat< T, P >::length_type

Constructor & Destructor Documentation

template<typename T , precision P>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( )
template<typename T , precision P>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( tquat< T, P > const &  q)
template<typename T , precision P>
template<precision Q>
GLM_FUNC_DECL glm::tquat< T, P >::tquat ( tquat< T, Q > const &  q)
template<typename T , precision P>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( ctor  )
explicit
template<typename T , precision P>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( T const &  s,
tvec3< T, P > const &  v 
)
explicit
template<typename T , precision P>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( T const &  w,
T const &  x,
T const &  y,
T const &  z 
)
template<typename T , precision P>
template<typename U , precision Q>
GLM_FUNC_DECL glm::tquat< T, P >::tquat ( tquat< U, Q > const &  q)
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
http://lolengine.net/blog/2013/09/18/beautiful-maths-quaternion-from-vectors
template<typename T , precision P>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( tvec3< T, P > const &  eulerAngles)
explicit

Build a quaternion from euler angles (pitch, yaw, roll), in radians.

template<typename T , precision P>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( tmat3x3< T, P > const &  m)
explicit
template<typename T , precision P>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( tmat4x4< T, P > const &  m)
explicit
template<typename T , precision P>
template<precision Q>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( tquat< T, Q > const &  q)
template<typename T , precision P>
template<typename U, precision Q>
GLM_FUNC_QUALIFIER glm::tquat< T, P >::tquat ( tquat< U, Q > const &  q)

Member Function Documentation

template<typename T , precision P>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR tquat< T, P >::length_type glm::tquat< T, P >::length ( ) const

Return the count of components of a quaternion.

template<typename T , precision P>
GLM_FUNC_DECL T& glm::tquat< T, P >::operator[] ( length_type  i)
template<typename T , precision P>
GLM_FUNC_DECL T const& glm::tquat< T, P >::operator[] ( length_type  i) const
template<typename T , precision P>
GLM_FUNC_QUALIFIER tquat< T, P > & glm::tquat< T, P >::operator= ( tquat< T, P > const &  m)
template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tquat<T, P>& glm::tquat< T, P >::operator= ( tquat< U, P > const &  m)
template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tquat<T, P>& glm::tquat< T, P >::operator+= ( tquat< U, P > const &  q)
template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tquat<T, P>& glm::tquat< T, P >::operator*= ( tquat< U, P > const &  q)
template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tquat<T, P>& glm::tquat< T, P >::operator*= ( s)
template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tquat<T, P>& glm::tquat< T, P >::operator/= ( s)
template<typename T , precision P>
template<typename U >
GLM_FUNC_QUALIFIER tquat<T, P>& glm::tquat< T, P >::operator= ( tquat< U, P > const &  q)
template<typename T , precision P>
template<typename U >
GLM_FUNC_QUALIFIER tquat<T, P>& glm::tquat< T, P >::operator+= ( tquat< U, P > const &  q)
template<typename T , precision P>
template<typename U >
GLM_FUNC_QUALIFIER tquat<T, P>& glm::tquat< T, P >::operator*= ( tquat< U, P > const &  r)
template<typename T , precision P>
template<typename U >
GLM_FUNC_QUALIFIER tquat<T, P>& glm::tquat< T, P >::operator*= ( s)
template<typename T , precision P>
template<typename U >
GLM_FUNC_QUALIFIER tquat<T, P>& glm::tquat< T, P >::operator/= ( s)

Member Data Documentation

template<typename T , precision P>
T glm::tquat< T, P >::x
template<typename T , precision P>
T glm::tquat< T, P >::y
template<typename T , precision P>
T glm::tquat< T, P >::z
template<typename T , precision P>
T glm::tquat< T, P >::w

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