doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
idQuat Class Reference

#include <Quat.h>

Public Member Functions

 idQuat (void)
 
 idQuat (float x, float y, float z, float w)
 
void Set (float x, float y, float z, float w)
 
float operator[] (int index) const
 
floatoperator[] (int index)
 
idQuat operator- () const
 
idQuatoperator= (const idQuat &a)
 
idQuat operator+ (const idQuat &a) const
 
idQuatoperator+= (const idQuat &a)
 
idQuat operator- (const idQuat &a) const
 
idQuatoperator-= (const idQuat &a)
 
idQuat operator* (const idQuat &a) const
 
idVec3 operator* (const idVec3 &a) const
 
idQuat operator* (float a) const
 
idQuatoperator*= (const idQuat &a)
 
idQuatoperator*= (float a)
 
bool Compare (const idQuat &a) const
 
bool Compare (const idQuat &a, const float epsilon) const
 
bool operator== (const idQuat &a) const
 
bool operator!= (const idQuat &a) const
 
idQuat Inverse (void) const
 
float Length (void) const
 
idQuatNormalize (void)
 
float CalcW (void) const
 
int GetDimension (void) const
 
idAngles ToAngles (void) const
 
idRotation ToRotation (void) const
 
idMat3 ToMat3 (void) const
 
idMat4 ToMat4 (void) const
 
idCQuat ToCQuat (void) const
 
idVec3 ToAngularVelocity (void) const
 
const floatToFloatPtr (void) const
 
floatToFloatPtr (void)
 
const char * ToString (int precision=2) const
 
idQuatSlerp (const idQuat &from, const idQuat &to, float t)
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Friends

idQuat operator* (const float a, const idQuat &b)
 
idVec3 operator* (const idVec3 &a, const idQuat &b)
 

Detailed Description

Definition at line 48 of file Quat.h.

Constructor & Destructor Documentation

ID_INLINE idQuat::idQuat ( void  )

Definition at line 102 of file Quat.h.

ID_INLINE idQuat::idQuat ( float  x,
float  y,
float  z,
float  w 
)

Definition at line 105 of file Quat.h.

Member Function Documentation

ID_INLINE float idQuat::CalcW ( void  ) const

Definition at line 280 of file Quat.h.

ID_INLINE bool idQuat::Compare ( const idQuat a) const

Definition at line 219 of file Quat.h.

ID_INLINE bool idQuat::Compare ( const idQuat a,
const float  epsilon 
) const

Definition at line 223 of file Quat.h.

ID_INLINE int idQuat::GetDimension ( void  ) const

Definition at line 285 of file Quat.h.

ID_INLINE idQuat idQuat::Inverse ( void  ) const

Definition at line 254 of file Quat.h.

ID_INLINE float idQuat::Length ( void  ) const

Definition at line 258 of file Quat.h.

ID_INLINE idQuat & idQuat::Normalize ( void  )

Definition at line 265 of file Quat.h.

ID_INLINE bool idQuat::operator!= ( const idQuat a) const

Definition at line 243 of file Quat.h.

ID_INLINE idQuat idQuat::operator* ( const idQuat a) const

Definition at line 161 of file Quat.h.

ID_INLINE idVec3 idQuat::operator* ( const idVec3 a) const

Definition at line 168 of file Quat.h.

ID_INLINE idQuat idQuat::operator* ( float  a) const

Definition at line 192 of file Quat.h.

ID_INLINE idQuat & idQuat::operator*= ( const idQuat a)

Definition at line 204 of file Quat.h.

ID_INLINE idQuat & idQuat::operator*= ( float  a)

Definition at line 210 of file Quat.h.

ID_INLINE idQuat idQuat::operator+ ( const idQuat a) const

Definition at line 135 of file Quat.h.

ID_INLINE idQuat & idQuat::operator+= ( const idQuat a)

Definition at line 139 of file Quat.h.

ID_INLINE idQuat idQuat::operator- ( ) const

Definition at line 122 of file Quat.h.

ID_INLINE idQuat idQuat::operator- ( const idQuat a) const

Definition at line 148 of file Quat.h.

ID_INLINE idQuat & idQuat::operator-= ( const idQuat a)

Definition at line 152 of file Quat.h.

ID_INLINE idQuat & idQuat::operator= ( const idQuat a)

Definition at line 126 of file Quat.h.

ID_INLINE bool idQuat::operator== ( const idQuat a) const

Definition at line 239 of file Quat.h.

ID_INLINE float idQuat::operator[] ( int  index) const

Definition at line 112 of file Quat.h.

ID_INLINE float & idQuat::operator[] ( int  index)

Definition at line 117 of file Quat.h.

ID_INLINE void idQuat::Set ( float  x,
float  y,
float  z,
float  w 
)

Definition at line 247 of file Quat.h.

idQuat & idQuat::Slerp ( const idQuat from,
const idQuat to,
float  t 
)

Definition at line 160 of file Quat.cpp.

idAngles idQuat::ToAngles ( void  ) const

Definition at line 37 of file Quat.cpp.

idVec3 idQuat::ToAngularVelocity ( void  ) const

Definition at line 134 of file Quat.cpp.

idCQuat idQuat::ToCQuat ( void  ) const

Definition at line 122 of file Quat.cpp.

ID_INLINE const float * idQuat::ToFloatPtr ( void  ) const

Definition at line 289 of file Quat.h.

ID_INLINE float * idQuat::ToFloatPtr ( void  )

Definition at line 293 of file Quat.h.

idMat3 idQuat::ToMat3 ( void  ) const

Definition at line 70 of file Quat.cpp.

idMat4 idQuat::ToMat4 ( void  ) const

Definition at line 113 of file Quat.cpp.

idRotation idQuat::ToRotation ( void  ) const

Definition at line 46 of file Quat.cpp.

const char * idQuat::ToString ( int  precision = 2) const

Definition at line 149 of file Quat.cpp.

Friends And Related Function Documentation

idQuat operator* ( const float  a,
const idQuat b 
)
friend

Definition at line 196 of file Quat.h.

idVec3 operator* ( const idVec3 a,
const idQuat b 
)
friend

Definition at line 200 of file Quat.h.

Member Data Documentation

float idQuat::w

Definition at line 53 of file Quat.h.

float idQuat::x

Definition at line 50 of file Quat.h.

float idQuat::y

Definition at line 51 of file Quat.h.

float idQuat::z

Definition at line 52 of file Quat.h.


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