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

#include <Complex.h>

Public Member Functions

 idComplex (void)
 
 idComplex (const float r, const float i)
 
void Set (const float r, const float i)
 
void Zero (void)
 
float operator[] (int index) const
 
floatoperator[] (int index)
 
idComplex operator- () const
 
idComplexoperator= (const idComplex &a)
 
idComplex operator* (const idComplex &a) const
 
idComplex operator/ (const idComplex &a) const
 
idComplex operator+ (const idComplex &a) const
 
idComplex operator- (const idComplex &a) const
 
idComplexoperator*= (const idComplex &a)
 
idComplexoperator/= (const idComplex &a)
 
idComplexoperator+= (const idComplex &a)
 
idComplexoperator-= (const idComplex &a)
 
idComplex operator* (const float a) const
 
idComplex operator/ (const float a) const
 
idComplex operator+ (const float a) const
 
idComplex operator- (const float a) const
 
idComplexoperator*= (const float a)
 
idComplexoperator/= (const float a)
 
idComplexoperator+= (const float a)
 
idComplexoperator-= (const float a)
 
bool Compare (const idComplex &a) const
 
bool Compare (const idComplex &a, const float epsilon) const
 
bool operator== (const idComplex &a) const
 
bool operator!= (const idComplex &a) const
 
idComplex Reciprocal (void) const
 
idComplex Sqrt (void) const
 
float Abs (void) const
 
int GetDimension (void) const
 
const floatToFloatPtr (void) const
 
floatToFloatPtr (void)
 
const char * ToString (int precision=2) const
 

Public Attributes

float r
 
float i
 

Friends

idComplex operator* (const float a, const idComplex &b)
 
idComplex operator/ (const float a, const idComplex &b)
 
idComplex operator+ (const float a, const idComplex &b)
 
idComplex operator- (const float a, const idComplex &b)
 

Detailed Description

Definition at line 40 of file Complex.h.

Constructor & Destructor Documentation

ID_INLINE idComplex::idComplex ( void  )

Definition at line 101 of file Complex.h.

ID_INLINE idComplex::idComplex ( const float  r,
const float  i 
)

Definition at line 104 of file Complex.h.

Member Function Documentation

ID_INLINE float idComplex::Abs ( void  ) const

Definition at line 297 of file Complex.h.

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

Definition at line 314 of file Complex.h.

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

Definition at line 318 of file Complex.h.

ID_INLINE int idComplex::GetDimension ( void  ) const

Definition at line 336 of file Complex.h.

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

Definition at line 332 of file Complex.h.

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

Definition at line 138 of file Complex.h.

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

Definition at line 194 of file Complex.h.

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

Definition at line 163 of file Complex.h.

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

Definition at line 211 of file Complex.h.

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

Definition at line 155 of file Complex.h.

ID_INLINE idComplex idComplex::operator+ ( const float  a) const

Definition at line 203 of file Complex.h.

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

Definition at line 182 of file Complex.h.

ID_INLINE idComplex & idComplex::operator+= ( const float  a)

Definition at line 224 of file Complex.h.

ID_INLINE idComplex idComplex::operator- ( ) const

Definition at line 128 of file Complex.h.

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

Definition at line 159 of file Complex.h.

ID_INLINE idComplex idComplex::operator- ( const float  a) const

Definition at line 207 of file Complex.h.

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

Definition at line 188 of file Complex.h.

ID_INLINE idComplex & idComplex::operator-= ( const float  a)

Definition at line 229 of file Complex.h.

ID_INLINE idComplex idComplex::operator/ ( const idComplex a) const

Definition at line 142 of file Complex.h.

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

Definition at line 198 of file Complex.h.

ID_INLINE idComplex & idComplex::operator/= ( const idComplex a)

Definition at line 168 of file Complex.h.

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

Definition at line 217 of file Complex.h.

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

Definition at line 132 of file Complex.h.

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

Definition at line 328 of file Complex.h.

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

Definition at line 118 of file Complex.h.

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

Definition at line 123 of file Complex.h.

ID_INLINE idComplex idComplex::Reciprocal ( void  ) const

Definition at line 259 of file Complex.h.

ID_INLINE void idComplex::Set ( const float  r,
const float  i 
)

Definition at line 109 of file Complex.h.

ID_INLINE idComplex idComplex::Sqrt ( void  ) const

Definition at line 272 of file Complex.h.

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

Definition at line 340 of file Complex.h.

ID_INLINE float * idComplex::ToFloatPtr ( void  )

Definition at line 344 of file Complex.h.

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

Definition at line 39 of file Complex.cpp.

ID_INLINE void idComplex::Zero ( void  )

Definition at line 114 of file Complex.h.

Friends And Related Function Documentation

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

Definition at line 234 of file Complex.h.

idComplex operator+ ( const float  a,
const idComplex b 
)
friend

Definition at line 251 of file Complex.h.

idComplex operator- ( const float  a,
const idComplex b 
)
friend

Definition at line 255 of file Complex.h.

idComplex operator/ ( const float  a,
const idComplex b 
)
friend

Definition at line 238 of file Complex.h.

Member Data Documentation

float idComplex::i

Definition at line 43 of file Complex.h.

float idComplex::r

Definition at line 42 of file Complex.h.


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