HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Quat< T > Class Template Reference

#include <ImathForward.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)
 
Toperator[] (int index)
 
T 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< Tinverse () const
 
Quat< T > & normalize ()
 
Quat< Tnormalized () const
 
T length () const
 
Vec3< TrotateVector (const Vec3< T > &original) const
 
T 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)
 
T angle () const
 
Vec3< Taxis () const
 
Matrix33< TtoMatrix33 () const
 
Matrix44< TtoMatrix44 () const
 
Quat< Tlog () const
 
Quat< Texp () const
 

Static Public Member Functions

static Quat< Tidentity ()
 

Public Attributes

T r
 
Vec3< Tv
 

Detailed Description

template<class T>
class Quat< T >

Definition at line 57 of file ImathForward.h.

Constructor & Destructor Documentation

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

Definition at line 231 of file ImathQuat.h.

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

Definition at line 240 of file ImathQuat.h.

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

Definition at line 248 of file ImathQuat.h.

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

Definition at line 256 of file ImathQuat.h.

Member Function Documentation

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

Definition at line 677 of file ImathQuat.h.

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

Definition at line 685 of file ImathQuat.h.

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

Definition at line 468 of file ImathQuat.h.

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

Definition at line 652 of file ImathQuat.h.

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

Definition at line 264 of file ImathQuat.h.

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

Definition at line 421 of file ImathQuat.h.

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

Definition at line 436 of file ImathQuat.h.

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

Definition at line 383 of file ImathQuat.h.

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

Definition at line 626 of file ImathQuat.h.

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

Definition at line 391 of file ImathQuat.h.

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

Definition at line 410 of file ImathQuat.h.

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

Definition at line 367 of file ImathQuat.h.

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

Definition at line 281 of file ImathQuat.h.

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

Definition at line 292 of file ImathQuat.h.

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

Definition at line 321 of file ImathQuat.h.

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

Definition at line 331 of file ImathQuat.h.

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

Definition at line 302 of file ImathQuat.h.

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

Definition at line 311 of file ImathQuat.h.

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

Definition at line 271 of file ImathQuat.h.

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

Definition at line 358 of file ImathQuat.h.

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

Definition at line 341 of file ImathQuat.h.

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

Definition at line 349 of file ImathQuat.h.

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

Definition at line 447 of file ImathQuat.h.

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

Definition at line 693 of file ImathQuat.h.

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

Definition at line 703 of file ImathQuat.h.

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

Definition at line 810 of file ImathQuat.h.

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

Definition at line 827 of file ImathQuat.h.

Member Data Documentation

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

Definition at line 76 of file ImathQuat.h.

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

Definition at line 77 of file ImathQuat.h.


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