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
idAngles Class Reference

#include <Angles.h>

Public Member Functions

 idAngles (void)
 
 idAngles (float pitch, float yaw, float roll)
 
 idAngles (const idVec3 &v)
 
void Set (float pitch, float yaw, float roll)
 
idAnglesZero (void)
 
float operator[] (int index) const
 
floatoperator[] (int index)
 
idAngles operator- () const
 
idAnglesoperator= (const idAngles &a)
 
idAngles operator+ (const idAngles &a) const
 
idAnglesoperator+= (const idAngles &a)
 
idAngles operator- (const idAngles &a) const
 
idAnglesoperator-= (const idAngles &a)
 
idAngles operator* (const float a) const
 
idAnglesoperator*= (const float a)
 
idAngles operator/ (const float a) const
 
idAnglesoperator/= (const float a)
 
bool Compare (const idAngles &a) const
 
bool Compare (const idAngles &a, const float epsilon) const
 
bool operator== (const idAngles &a) const
 
bool operator!= (const idAngles &a) const
 
idAnglesNormalize360 (void)
 
idAnglesNormalize180 (void)
 
void Clamp (const idAngles &min, const idAngles &max)
 
int GetDimension (void) const
 
void ToVectors (idVec3 *forward, idVec3 *right=NULL, idVec3 *up=NULL) const
 
idVec3 ToForward (void) const
 
idQuat ToQuat (void) const
 
idRotation ToRotation (void) const
 
idMat3 ToMat3 (void) const
 
idMat4 ToMat4 (void) const
 
idVec3 ToAngularVelocity (void) const
 
const floatToFloatPtr (void) const
 
floatToFloatPtr (void)
 
const char * ToString (int precision=2) const
 

Public Attributes

float pitch
 
float yaw
 
float roll
 

Friends

idAngles operator* (const float a, const idAngles &b)
 

Detailed Description

Definition at line 51 of file Angles.h.

Constructor & Destructor Documentation

ID_INLINE idAngles::idAngles ( void  )

Definition at line 105 of file Angles.h.

ID_INLINE idAngles::idAngles ( float  pitch,
float  yaw,
float  roll 
)

Definition at line 108 of file Angles.h.

ID_INLINE idAngles::idAngles ( const idVec3 v)
explicit

Definition at line 114 of file Angles.h.

Member Function Documentation

ID_INLINE void idAngles::Clamp ( const idAngles min,
const idAngles max 
)

Definition at line 232 of file Angles.h.

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

Definition at line 204 of file Angles.h.

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

Definition at line 208 of file Angles.h.

ID_INLINE int idAngles::GetDimension ( void  ) const

Definition at line 250 of file Angles.h.

idAngles & idAngles::Normalize180 ( void  )

Definition at line 70 of file Angles.cpp.

idAngles & idAngles::Normalize360 ( void  )

Definition at line 44 of file Angles.cpp.

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

Definition at line 228 of file Angles.h.

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

Definition at line 176 of file Angles.h.

ID_INLINE idAngles & idAngles::operator*= ( const float  a)

Definition at line 180 of file Angles.h.

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

Definition at line 152 of file Angles.h.

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

Definition at line 156 of file Angles.h.

ID_INLINE idAngles idAngles::operator- ( ) const

Definition at line 141 of file Angles.h.

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

Definition at line 164 of file Angles.h.

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

Definition at line 168 of file Angles.h.

ID_INLINE idAngles idAngles::operator/ ( const float  a) const

Definition at line 187 of file Angles.h.

ID_INLINE idAngles & idAngles::operator/= ( const float  a)

Definition at line 192 of file Angles.h.

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

Definition at line 145 of file Angles.h.

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

Definition at line 224 of file Angles.h.

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

Definition at line 131 of file Angles.h.

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

Definition at line 136 of file Angles.h.

ID_INLINE void idAngles::Set ( float  pitch,
float  yaw,
float  roll 
)

Definition at line 120 of file Angles.h.

idVec3 idAngles::ToAngularVelocity ( void  ) const

Definition at line 228 of file Angles.cpp.

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

Definition at line 254 of file Angles.h.

ID_INLINE float * idAngles::ToFloatPtr ( void  )

Definition at line 258 of file Angles.h.

idVec3 idAngles::ToForward ( void  ) const

Definition at line 117 of file Angles.cpp.

idMat3 idAngles::ToMat3 ( void  ) const

Definition at line 199 of file Angles.cpp.

idMat4 idAngles::ToMat4 ( void  ) const

Definition at line 219 of file Angles.cpp.

idQuat idAngles::ToQuat ( void  ) const

Definition at line 131 of file Angles.cpp.

idRotation idAngles::ToRotation ( void  ) const

Definition at line 152 of file Angles.cpp.

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

Definition at line 238 of file Angles.cpp.

void idAngles::ToVectors ( idVec3 forward,
idVec3 right = NULL,
idVec3 up = NULL 
) const

Definition at line 92 of file Angles.cpp.

ID_INLINE idAngles & idAngles::Zero ( void  )

Definition at line 126 of file Angles.h.

Friends And Related Function Documentation

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

Definition at line 200 of file Angles.h.

Member Data Documentation

float idAngles::pitch

Definition at line 53 of file Angles.h.

float idAngles::roll

Definition at line 55 of file Angles.h.

float idAngles::yaw

Definition at line 54 of file Angles.h.


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