Inheritance diagram for Exponent::MathTools::TComplex< TypeName >:
Definition at line 30 of file TComplex.hpp.
Exponent::MathTools::TComplex< TypeName >::TComplex | ( | const TypeName | real = 0 , |
|
const TypeName | imag = 0 | |||
) | [inline] |
Construction
real | The real part | |
imag | The imag part |
Definition at line 47 of file TComplex.hpp.
References EXPONENT_CLASS_CONSTRUCTION.
virtual Exponent::MathTools::TComplex< TypeName >::~TComplex | ( | ) | [inline, virtual] |
TypeName Exponent::MathTools::TComplex< TypeName >::getImaginary | ( | ) | const [inline] |
Get the imaginary part
TypeName | The imaginary part |
Definition at line 208 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag.
TypeName Exponent::MathTools::TComplex< TypeName >::getMagnitude | ( | ) | const [inline] |
Get the magnitude
TypeName | The magnitude (as defined sqrt(m_real^2+m_imag^2)) |
Definition at line 170 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
TypeName Exponent::MathTools::TComplex< TypeName >::getMagnitudeSquared | ( | ) | const [inline] |
Get magnitude squared
TypeName | Magnitude^2 |
Definition at line 179 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
Referenced by Exponent::MathTools::TComplex< TypeName >::operator/().
TypeName Exponent::MathTools::TComplex< TypeName >::getPhase | ( | ) | const [inline] |
Get the phase
TypeName | The phase (as defined atan2(m_imag, m_real)) |
Definition at line 188 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
TypeName Exponent::MathTools::TComplex< TypeName >::getReal | ( | ) | const [inline] |
Get the real part
TypeName | The real part |
Definition at line 199 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_real.
TComplex<TypeName> Exponent::MathTools::TComplex< TypeName >::operator * | ( | const TypeName | value | ) | [inline] |
Multiplication operation
value | The value to times this to |
TComplex | This * complex |
Definition at line 122 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
TComplex<TypeName> Exponent::MathTools::TComplex< TypeName >::operator * | ( | const TComplex< TypeName > & | complex | ) | [inline] |
Multiplication operation
complex | The complex to times this to |
TComplex | This * complex |
Definition at line 89 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
TComplex<TypeName> Exponent::MathTools::TComplex< TypeName >::operator+ | ( | const TComplex< TypeName > & | complex | ) | [inline] |
Addition operation
complex | The complex to add this to |
TComplex | This + complex |
Definition at line 67 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
TComplex<TypeName> Exponent::MathTools::TComplex< TypeName >::operator- | ( | const TComplex< TypeName > & | complex | ) | [inline] |
Subtraction operation
complex | The complex to subtract this to |
TComplex | This - complex |
Definition at line 78 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
TComplex<TypeName> Exponent::MathTools::TComplex< TypeName >::operator/ | ( | const TypeName | value | ) | [inline] |
Division operation
value | The value to divide this to |
TComplex | This / value |
Definition at line 133 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
TComplex<TypeName> Exponent::MathTools::TComplex< TypeName >::operator/ | ( | const TComplex< TypeName > & | complex | ) | [inline] |
Division operation
complex | The complex to divide this to |
TComplex | This / complex |
Definition at line 100 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::getMagnitudeSquared(), Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
TComplex<TypeName> Exponent::MathTools::TComplex< TypeName >::operator= | ( | const TComplex< TypeName > & | complex | ) | [inline] |
Assignment operation
complex | The complex to assign this to |
TComplex | This |
Definition at line 111 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
void Exponent::MathTools::TComplex< TypeName >::setRealAndImaginary | ( | const TypeName | real, | |
const TypeName | imag | |||
) | [inline] |
Set real and imaginary parts
real | The real part | |
imag | The imag part |
Definition at line 158 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
void Exponent::MathTools::TComplex< TypeName >::setRealAndImaginaryFromMagnitudeAndPhase | ( | const TypeName | magnitude, | |
const TypeName | phase | |||
) | [inline] |
Set the real and imaginary from a magnitude and phase components
magnitude | The magnitude part | |
phase | The phase part |
Definition at line 147 of file TComplex.hpp.
References Exponent::MathTools::TComplex< TypeName >::m_imag, and Exponent::MathTools::TComplex< TypeName >::m_real.
TypeName Exponent::MathTools::TComplex< TypeName >::m_imag [protected] |
imaginary component
Definition at line 220 of file TComplex.hpp.
Referenced by Exponent::MathTools::TComplex< TypeName >::getImaginary(), Exponent::MathTools::TComplex< TypeName >::getMagnitude(), Exponent::MathTools::TComplex< TypeName >::getMagnitudeSquared(), Exponent::MathTools::TComplex< TypeName >::getPhase(), Exponent::MathTools::TComplex< TypeName >::operator *(), Exponent::MathTools::TComplex< TypeName >::operator+(), Exponent::MathTools::TComplex< TypeName >::operator-(), Exponent::MathTools::TComplex< TypeName >::operator/(), Exponent::MathTools::TComplex< TypeName >::operator=(), Exponent::MathTools::TComplex< TypeName >::setRealAndImaginary(), and Exponent::MathTools::TComplex< TypeName >::setRealAndImaginaryFromMagnitudeAndPhase().
TypeName Exponent::MathTools::TComplex< TypeName >::m_real [protected] |
real value
Definition at line 219 of file TComplex.hpp.
Referenced by Exponent::MathTools::TComplex< TypeName >::getMagnitude(), Exponent::MathTools::TComplex< TypeName >::getMagnitudeSquared(), Exponent::MathTools::TComplex< TypeName >::getPhase(), Exponent::MathTools::TComplex< TypeName >::getReal(), Exponent::MathTools::TComplex< TypeName >::operator *(), Exponent::MathTools::TComplex< TypeName >::operator+(), Exponent::MathTools::TComplex< TypeName >::operator-(), Exponent::MathTools::TComplex< TypeName >::operator/(), Exponent::MathTools::TComplex< TypeName >::operator=(), Exponent::MathTools::TComplex< TypeName >::setRealAndImaginary(), and Exponent::MathTools::TComplex< TypeName >::setRealAndImaginaryFromMagnitudeAndPhase().