Rumba C++ SDK
Imath::Quat< T > Class Template Reference

#include <ImathQuat.h>

Public Member Functions

 Quat ()
 
template<class S >
 Quat (const Quat< S > &q)
 
 Quat (T s, T i, T j, T k)
 
 Quat (T s, Vec3< T > d)
 
const Quat< T > & operator= (const Quat< T > &q)
 
const Quat< T > & operator*= (const Quat< T > &q)
 
const Quat< T > & operator*= (T t)
 
const Quat< T > & operator/= (const Quat< T > &q)
 
const Quat< T > & operator/= (T t)
 
const Quat< T > & operator+= (const Quat< T > &q)
 
const Quat< T > & operator-= (const Quat< T > &q)
 
T & operator[] (int index)
 
operator[] (int index) const
 
template<class S >
bool operator== (const Quat< S > &q) const
 
template<class S >
bool operator!= (const Quat< S > &q) const
 
Quat< T > & invert ()
 
Quat< T > inverse () const
 
Quat< T > & normalize ()
 
Quat< T > normalized () const
 
length () const
 
Vec3< T > rotateVector (const Vec3< T > &original) const
 
euclideanInnerProduct (const Quat< T > &q) const
 
Quat< T > & setAxisAngle (const Vec3< T > &axis, T radians)
 
Quat< T > & setRotation (const Vec3< T > &fromDirection, const Vec3< T > &toDirection)
 
angle () const
 
Vec3< T > axis () const
 
Matrix33< T > toMatrix33 () const
 
Matrix44< T > toMatrix44 () const
 
Quat< T > log () const
 
Quat< T > exp () const
 

Static Public Member Functions

static Quat< T > identity ()
 

Public Attributes

r
 
Vec3< T > v
 

Constructor & Destructor Documentation

◆ Quat() [1/4]

template<class T >
Imath::Quat< T >::Quat ( )
inline

◆ Quat() [2/4]

template<class T >
template<class S >
Imath::Quat< T >::Quat ( const Quat< S > &  q)
inline

◆ Quat() [3/4]

template<class T >
Imath::Quat< T >::Quat ( s,
i,
j,
k 
)
inline

◆ Quat() [4/4]

template<class T >
Imath::Quat< T >::Quat ( s,
Vec3< T >  d 
)
inline

Member Function Documentation

◆ angle()

template<class T >
T Imath::Quat< T >::angle ( ) const
inline

◆ axis()

template<class T >
Vec3< T > Imath::Quat< T >::axis ( ) const
inline

◆ euclideanInnerProduct()

template<class T >
T Imath::Quat< T >::euclideanInnerProduct ( const Quat< T > &  q) const
inline

◆ exp()

template<class T >
Quat< T > Imath::Quat< T >::exp ( ) const
inline

◆ identity()

template<class T >
Quat< T > Imath::Quat< T >::identity ( )
inlinestatic

◆ inverse()

template<class T >
Quat< T > Imath::Quat< T >::inverse ( ) const
inline

◆ invert()

template<class T >
Quat< T > & Imath::Quat< T >::invert ( )
inline

◆ length()

template<class T >
T Imath::Quat< T >::length ( ) const
inline

◆ log()

template<class T >
Quat< T > Imath::Quat< T >::log ( ) const
inline

◆ normalize()

template<class T >
Quat< T > & Imath::Quat< T >::normalize ( )
inline

◆ normalized()

template<class T >
Quat< T > Imath::Quat< T >::normalized ( ) const
inline

◆ operator!=()

template<class T >
template<class S >
bool Imath::Quat< T >::operator!= ( const Quat< S > &  q) const
inline

◆ operator*=() [1/2]

template<class T >
const Quat< T > & Imath::Quat< T >::operator*= ( const Quat< T > &  q)
inline

◆ operator*=() [2/2]

template<class T >
const Quat< T > & Imath::Quat< T >::operator*= ( t)
inline

◆ operator+=()

template<class T >
const Quat< T > & Imath::Quat< T >::operator+= ( const Quat< T > &  q)
inline

◆ operator-=()

template<class T >
const Quat< T > & Imath::Quat< T >::operator-= ( const Quat< T > &  q)
inline

◆ operator/=() [1/2]

template<class T >
const Quat< T > & Imath::Quat< T >::operator/= ( const Quat< T > &  q)
inline

◆ operator/=() [2/2]

template<class T >
const Quat< T > & Imath::Quat< T >::operator/= ( t)
inline

◆ operator=()

template<class T >
const Quat< T > & Imath::Quat< T >::operator= ( const Quat< T > &  q)
inline

◆ operator==()

template<class T >
template<class S >
bool Imath::Quat< T >::operator== ( const Quat< S > &  q) const
inline

◆ operator[]() [1/2]

template<class T >
T & Imath::Quat< T >::operator[] ( int  index)
inline

◆ operator[]() [2/2]

template<class T >
T Imath::Quat< T >::operator[] ( int  index) const
inline

◆ rotateVector()

template<class T >
Vec3< T > Imath::Quat< T >::rotateVector ( const Vec3< T > &  original) const
inline

◆ setAxisAngle()

template<class T >
Quat< T > & Imath::Quat< T >::setAxisAngle ( const Vec3< T > &  axis,
radians 
)
inline

◆ setRotation()

template<class T >
Quat< T > & Imath::Quat< T >::setRotation ( const Vec3< T > &  fromDirection,
const Vec3< T > &  toDirection 
)

◆ toMatrix33()

template<class T >
Matrix33< T > Imath::Quat< T >::toMatrix33 ( ) const

◆ toMatrix44()

template<class T >
Matrix44< T > Imath::Quat< T >::toMatrix44 ( ) const

Member Data Documentation

◆ r

template<class T>
T Imath::Quat< T >::r

◆ v

template<class T>
Vec3<T> Imath::Quat< T >::v

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