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

#include <Rotation.h>

Public Member Functions

 idRotation (void)
 
 idRotation (const idVec3 &rotationOrigin, const idVec3 &rotationVec, const float rotationAngle)
 
void Set (const idVec3 &rotationOrigin, const idVec3 &rotationVec, const float rotationAngle)
 
void SetOrigin (const idVec3 &rotationOrigin)
 
void SetVec (const idVec3 &rotationVec)
 
void SetVec (const float x, const float y, const float z)
 
void SetAngle (const float rotationAngle)
 
void Scale (const float s)
 
void ReCalculateMatrix (void)
 
const idVec3GetOrigin (void) const
 
const idVec3GetVec (void) const
 
float GetAngle (void) const
 
idRotation operator- () const
 
idRotation operator* (const float s) const
 
idRotation operator/ (const float s) const
 
idRotationoperator*= (const float s)
 
idRotationoperator/= (const float s)
 
idVec3 operator* (const idVec3 &v) const
 
idAngles ToAngles (void) const
 
idQuat ToQuat (void) const
 
const idMat3ToMat3 (void) const
 
idMat4 ToMat4 (void) const
 
idVec3 ToAngularVelocity (void) const
 
void RotatePoint (idVec3 &point) const
 
void Normalize180 (void)
 
void Normalize360 (void)
 

Private Attributes

idVec3 origin
 
idVec3 vec
 
float angle
 
idMat3 axis
 
bool axisValid
 

Friends

class idAngles
 
class idQuat
 
class idMat3
 
idRotation operator* (const float s, const idRotation &r)
 
idVec3 operator* (const idVec3 &v, const idRotation &r)
 
idVec3operator*= (idVec3 &v, const idRotation &r)
 

Detailed Description

Definition at line 46 of file Rotation.h.

Constructor & Destructor Documentation

ID_INLINE idRotation::idRotation ( void  )

Definition at line 98 of file Rotation.h.

ID_INLINE idRotation::idRotation ( const idVec3 rotationOrigin,
const idVec3 rotationVec,
const float  rotationAngle 
)

Definition at line 101 of file Rotation.h.

Member Function Documentation

ID_INLINE float idRotation::GetAngle ( void  ) const

Definition at line 154 of file Rotation.h.

ID_INLINE const idVec3 & idRotation::GetOrigin ( void  ) const

Definition at line 146 of file Rotation.h.

ID_INLINE const idVec3 & idRotation::GetVec ( void  ) const

Definition at line 150 of file Rotation.h.

void idRotation::Normalize180 ( void  )

Definition at line 134 of file Rotation.cpp.

void idRotation::Normalize360 ( void  )

Definition at line 149 of file Rotation.cpp.

ID_INLINE idRotation idRotation::operator* ( const float  s) const

Definition at line 162 of file Rotation.h.

ID_INLINE idVec3 idRotation::operator* ( const idVec3 v) const

Definition at line 184 of file Rotation.h.

ID_INLINE idRotation & idRotation::operator*= ( const float  s)

Definition at line 171 of file Rotation.h.

ID_INLINE idRotation idRotation::operator- ( ) const

Definition at line 158 of file Rotation.h.

ID_INLINE idRotation idRotation::operator/ ( const float  s) const

Definition at line 166 of file Rotation.h.

ID_INLINE idRotation & idRotation::operator/= ( const float  s)

Definition at line 177 of file Rotation.h.

ID_INLINE void idRotation::ReCalculateMatrix ( void  )

Definition at line 141 of file Rotation.h.

ID_INLINE void idRotation::RotatePoint ( idVec3 point) const

Definition at line 204 of file Rotation.h.

ID_INLINE void idRotation::Scale ( const float  s)

Definition at line 136 of file Rotation.h.

ID_INLINE void idRotation::Set ( const idVec3 rotationOrigin,
const idVec3 rotationVec,
const float  rotationAngle 
)

Definition at line 108 of file Rotation.h.

ID_INLINE void idRotation::SetAngle ( const float  rotationAngle)

Definition at line 131 of file Rotation.h.

ID_INLINE void idRotation::SetOrigin ( const idVec3 rotationOrigin)

Definition at line 115 of file Rotation.h.

ID_INLINE void idRotation::SetVec ( const idVec3 rotationVec)

Definition at line 119 of file Rotation.h.

ID_INLINE void idRotation::SetVec ( const float  x,
const float  y,
const float  z 
)

Definition at line 124 of file Rotation.h.

idAngles idRotation::ToAngles ( void  ) const

Definition at line 38 of file Rotation.cpp.

idVec3 idRotation::ToAngularVelocity ( void  ) const

Definition at line 125 of file Rotation.cpp.

const idMat3 & idRotation::ToMat3 ( void  ) const

Definition at line 60 of file Rotation.cpp.

idMat4 idRotation::ToMat4 ( void  ) const

Definition at line 116 of file Rotation.cpp.

idQuat idRotation::ToQuat ( void  ) const

Definition at line 47 of file Rotation.cpp.

Friends And Related Function Documentation

friend class idAngles
friend

Definition at line 48 of file Rotation.h.

friend class idMat3
friend

Definition at line 50 of file Rotation.h.

friend class idQuat
friend

Definition at line 49 of file Rotation.h.

idRotation operator* ( const float  s,
const idRotation r 
)
friend

Definition at line 191 of file Rotation.h.

idVec3 operator* ( const idVec3 v,
const idRotation r 
)
friend

Definition at line 195 of file Rotation.h.

idVec3& operator*= ( idVec3 v,
const idRotation r 
)
friend

Definition at line 199 of file Rotation.h.

Member Data Documentation

float idRotation::angle
private

Definition at line 92 of file Rotation.h.

idMat3 idRotation::axis
mutableprivate

Definition at line 93 of file Rotation.h.

bool idRotation::axisValid
mutableprivate

Definition at line 94 of file Rotation.h.

idVec3 idRotation::origin
private

Definition at line 90 of file Rotation.h.

idVec3 idRotation::vec
private

Definition at line 91 of file Rotation.h.


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