#include <ComplexTmplDec.hxx>
Public Member Functions | |
| ComplexTmpl (T re=0.f, T im=0.f) | |
| ComplexTmpl (const ComplexTmpl< T > &rhs) | |
| const T | Real () const |
| const T | Imag () const |
| void | SetReal (const T re) |
| void | SetImag (const T im) |
| const T | Mag () const |
| returns magnitude | |
| const T | SquaredMag () const |
| returns squared magnitude | |
| const T | Ang () const |
| returns angle | |
| ComplexTmpl< T > | ToPolar (const T &r, const T &theta) |
| function to handle polar coordinates | |
| ComplexTmpl< T > & | operator= (const T re) |
| complex '=' operator (float) | |
| ComplexTmpl< T > & | operator= (const ComplexTmpl< T > &rhs) |
| complex '=' operator | |
| ComplexTmpl< T > & | operator+= (const ComplexTmpl< T > &rhs) |
| complex '+=' operator | |
| ComplexTmpl< T > & | operator-= (const ComplexTmpl< T > &rhs) |
| complex '-=' operator | |
| ComplexTmpl< T > | operator+ (const ComplexTmpl< T > &rhs) const |
| complex '+' operator | |
| ComplexTmpl< T > | operator- (const ComplexTmpl< T > &rhs) const |
| complex '-' operator | |
| ComplexTmpl< T > | operator* (const ComplexTmpl< T > &rhs) const |
| complex '*' operator | |
| ComplexTmpl< T > | operator* (const T &scalar) const |
| Product by a scalar. | |
| ComplexTmpl< T > | operator/ (const ComplexTmpl< T > &rhs) const |
| complex '/' operator | |
| bool | operator== (const ComplexTmpl< T > &b) const |
| complex '==' operator | |
| bool | operator!= (const ComplexTmpl< T > &b) const |
| complex '!=' operator | |
Definition at line 33 of file ComplexTmplDec.hxx.
| CLAM::ComplexTmpl< T >::ComplexTmpl | ( | T | re = 0.f, |
|
| T | im = 0.f | |||
| ) | [inline] |
Definition at line 40 of file ComplexTmplDec.hxx.
| CLAM::ComplexTmpl< T >::ComplexTmpl | ( | const ComplexTmpl< T > & | rhs | ) | [inline] |
Definition at line 41 of file ComplexTmplDec.hxx.
| const T CLAM::ComplexTmpl< T >::Ang | ( | ) | const [inline] |
| const T CLAM::ComplexTmpl< T >::Imag | ( | ) | const [inline] |
Definition at line 44 of file ComplexTmplDec.hxx.
| const T CLAM::ComplexTmpl< T >::Mag | ( | ) | const [inline] |
returns magnitude
Definition at line 50 of file ComplexTmplDec.hxx.
References CLAM::Abs(), and CLAM_sqrt().
| bool CLAM::ComplexTmpl< T >::operator!= | ( | const ComplexTmpl< T > & | b | ) | const [inline] |
complex '!=' operator
Definition at line 154 of file ComplexTmplDec.hxx.
| ComplexTmpl<T> CLAM::ComplexTmpl< T >::operator* | ( | const T & | scalar | ) | const [inline] |
Product by a scalar.
Definition at line 134 of file ComplexTmplDec.hxx.
| ComplexTmpl<T> CLAM::ComplexTmpl< T >::operator* | ( | const ComplexTmpl< T > & | rhs | ) | const [inline] |
complex '*' operator
Definition at line 128 of file ComplexTmplDec.hxx.
| ComplexTmpl<T> CLAM::ComplexTmpl< T >::operator+ | ( | const ComplexTmpl< T > & | rhs | ) | const [inline] |
complex '+' operator
Definition at line 116 of file ComplexTmplDec.hxx.
| ComplexTmpl<T>& CLAM::ComplexTmpl< T >::operator+= | ( | const ComplexTmpl< T > & | rhs | ) | [inline] |
complex '+=' operator
Definition at line 100 of file ComplexTmplDec.hxx.
| ComplexTmpl<T> CLAM::ComplexTmpl< T >::operator- | ( | const ComplexTmpl< T > & | rhs | ) | const [inline] |
complex '-' operator
Definition at line 122 of file ComplexTmplDec.hxx.
| ComplexTmpl<T>& CLAM::ComplexTmpl< T >::operator-= | ( | const ComplexTmpl< T > & | rhs | ) | [inline] |
complex '-=' operator
Definition at line 108 of file ComplexTmplDec.hxx.
| ComplexTmpl<T> CLAM::ComplexTmpl< T >::operator/ | ( | const ComplexTmpl< T > & | rhs | ) | const [inline] |
complex '/' operator
Definition at line 140 of file ComplexTmplDec.hxx.
| ComplexTmpl<T>& CLAM::ComplexTmpl< T >::operator= | ( | const ComplexTmpl< T > & | rhs | ) | [inline] |
complex '=' operator
Definition at line 91 of file ComplexTmplDec.hxx.
| ComplexTmpl<T>& CLAM::ComplexTmpl< T >::operator= | ( | const T | re | ) | [inline] |
complex '=' operator (float)
Definition at line 83 of file ComplexTmplDec.hxx.
| bool CLAM::ComplexTmpl< T >::operator== | ( | const ComplexTmpl< T > & | b | ) | const [inline] |
complex '==' operator
Definition at line 148 of file ComplexTmplDec.hxx.
| const T CLAM::ComplexTmpl< T >::Real | ( | ) | const [inline] |
Definition at line 43 of file ComplexTmplDec.hxx.
| void CLAM::ComplexTmpl< T >::SetImag | ( | const T | im | ) | [inline] |
Definition at line 47 of file ComplexTmplDec.hxx.
Referenced by CLAM::operator>>().
| void CLAM::ComplexTmpl< T >::SetReal | ( | const T | re | ) | [inline] |
Definition at line 46 of file ComplexTmplDec.hxx.
Referenced by CLAM::operator>>().
| const T CLAM::ComplexTmpl< T >::SquaredMag | ( | ) | const [inline] |
returns squared magnitude
Definition at line 63 of file ComplexTmplDec.hxx.
| ComplexTmpl<T> CLAM::ComplexTmpl< T >::ToPolar | ( | const T & | r, | |
| const T & | theta | |||
| ) | [inline] |
function to handle polar coordinates
Definition at line 75 of file ComplexTmplDec.hxx.
References CLAM_cos(), and CLAM_sin().
1.6.3