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

#include <fwd.hpp>

Public Types

typedef tvec4< bool, Pbool_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. More...
 
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 41 of file fwd.hpp.

Member Typedef Documentation

◆ bool_type

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.

◆ value_type

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

◆ ctor

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

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

Constructor & Destructor Documentation

◆ tquat() [1/8]

template<typename T, precision P>
GLM_FUNC_DECL glm::detail::tquat< T, P >::tquat ( )

◆ tquat() [2/8]

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

◆ tquat() [3/8]

template<typename T, precision P>
GLM_FUNC_DECL glm::detail::tquat< T, P >::tquat ( T const &  s,
tvec3< T, P > const &  v 
)

◆ tquat() [4/8]

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 
)

◆ tquat() [5/8]

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

◆ tquat() [6/8]

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.

◆ tquat() [7/8]

template<typename T, precision P>
GLM_FUNC_DECL glm::detail::tquat< T, P >::tquat ( tmat3x3< T, P > const &  m)
explicit

◆ tquat() [8/8]

template<typename T, precision P>
GLM_FUNC_DECL glm::detail::tquat< T, P >::tquat ( tmat4x4< T, P > const &  m)
explicit

Member Function Documentation

◆ length()

template<typename T, precision P>
GLM_FUNC_DECL GLM_CONSTEXPR length_t glm::detail::tquat< T, P >::length ( ) const

◆ operator*=() [1/2]

template<typename T, precision P>
GLM_FUNC_DECL tquat<T, P>& glm::detail::tquat< T, P >::operator*= ( tquat< T, P > const &  q)

◆ operator*=() [2/2]

template<typename T, precision P>
GLM_FUNC_DECL tquat<T, P>& glm::detail::tquat< T, P >::operator*= ( T const &  s)

◆ operator+=()

template<typename T, precision P>
GLM_FUNC_DECL tquat<T, P>& glm::detail::tquat< T, P >::operator+= ( tquat< T, P > const &  q)

◆ operator/=()

template<typename T, precision P>
GLM_FUNC_DECL tquat<T, P>& glm::detail::tquat< T, P >::operator/= ( T const &  s)

◆ operator[]() [1/2]

template<typename T, precision P>
GLM_FUNC_DECL T& glm::detail::tquat< T, P >::operator[] ( length_t  i)

◆ operator[]() [2/2]

template<typename T, precision P>
GLM_FUNC_DECL T const& glm::detail::tquat< T, P >::operator[] ( length_t  i) const

Member Data Documentation

◆ w

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

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

◆ x

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

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

◆ y

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

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

◆ z

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 files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:39:00