Public Types | Public Member Functions | Public Attributes
glm::detail::tquat< T, P > Struct Template Reference

#include <quaternion.hpp>

List of all members.

Public Types

typedef tvec4< bool, P > bool_type
enum  ctor { null }
typedef T value_type

Public Member Functions

GLM_FUNC_DECL GLM_CONSTEXPR
length_t 
length () const
GLM_FUNC_DECL tquat< T, P > & operator*= (tquat< T, P > const &q)
GLM_FUNC_DECL tquat< T, P > & operator*= (T const &s)
GLM_FUNC_DECL tquat< T, P > & operator+= (tquat< T, P > const &q)
GLM_FUNC_DECL tquat< T, P > & operator/= (T const &s)
GLM_FUNC_DECL Toperator[] (length_t i)
GLM_FUNC_DECL T const & operator[] (length_t i) const
GLM_FUNC_DECL tquat ()
template<typename U , precision Q>
GLM_FUNC_DECL tquat (tquat< U, Q > const &q)
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)
GLM_FUNC_DECL tquat (detail::tvec3< T, P > const &u, detail::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)

Public Attributes

T w
T x
T y
T z

Detailed Description

template<typename T, precision P>
struct glm::detail::tquat< T, P >

Definition at line 57 of file gtc/quaternion.hpp.


Member Typedef Documentation

template<typename T, precision P>
typedef tvec4<bool, P> glm::detail::tquat< T, P >::bool_type

Definition at line 62 of file gtc/quaternion.hpp.

template<typename T, precision P>
typedef T glm::detail::tquat< T, P >::value_type

Definition at line 61 of file gtc/quaternion.hpp.


Member Enumeration Documentation

template<typename T, precision P>
enum glm::detail::tquat::ctor
Enumerator:
null 

Definition at line 59 of file gtc/quaternion.hpp.


Constructor & Destructor Documentation

template<typename T, precision P>
GLM_FUNC_DECL glm::detail::tquat< T, P >::tquat ( )
template<typename T, precision P>
template<typename U , precision Q>
GLM_FUNC_DECL glm::detail::tquat< T, P >::tquat ( tquat< U, Q > const &  q) [explicit]
template<typename T, precision P>
GLM_FUNC_DECL glm::detail::tquat< T, P >::tquat ( T const &  s,
tvec3< T, P > const &  v 
)
template<typename T, precision P>
GLM_FUNC_DECL glm::detail::tquat< T, P >::tquat ( T const &  w,
T const &  x,
T const &  y,
T const &  z 
)
template<typename T, precision P>
GLM_FUNC_DECL glm::detail::tquat< T, P >::tquat ( detail::tvec3< T, P > const &  u,
detail::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_DECL glm::detail::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_DECL glm::detail::tquat< T, P >::tquat ( tmat3x3< T, P > const &  m) [explicit]
template<typename T, precision P>
GLM_FUNC_DECL glm::detail::tquat< T, P >::tquat ( tmat4x4< T, P > const &  m) [explicit]

Member Function Documentation

template<typename T, precision P>
GLM_FUNC_DECL GLM_CONSTEXPR length_t glm::detail::tquat< T, P >::length ( ) const
template<typename T, precision P>
GLM_FUNC_DECL tquat<T, P>& glm::detail::tquat< T, P >::operator*= ( tquat< T, P > const &  q)
template<typename T, precision P>
GLM_FUNC_DECL tquat<T, P>& glm::detail::tquat< T, P >::operator*= ( T const &  s)
template<typename T, precision P>
GLM_FUNC_DECL tquat<T, P>& glm::detail::tquat< T, P >::operator+= ( tquat< T, P > const &  q)
template<typename T, precision P>
GLM_FUNC_DECL tquat<T, P>& glm::detail::tquat< T, P >::operator/= ( T const &  s)
template<typename T, precision P>
GLM_FUNC_DECL T& glm::detail::tquat< T, P >::operator[] ( length_t  i)
template<typename T, precision P>
GLM_FUNC_DECL T const& glm::detail::tquat< T, P >::operator[] ( length_t  i) const

Member Data Documentation

template<typename T, precision P>
T glm::detail::tquat< T, P >::w

Definition at line 65 of file gtc/quaternion.hpp.

template<typename T, precision P>
T glm::detail::tquat< T, P >::x

Definition at line 65 of file gtc/quaternion.hpp.

template<typename T, precision P>
T glm::detail::tquat< T, P >::y

Definition at line 65 of file gtc/quaternion.hpp.

template<typename T, precision P>
T glm::detail::tquat< T, P >::z

Definition at line 65 of file gtc/quaternion.hpp.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sat Jul 23 2016 11:44:31