CLAM::ComplexTmpl< T > Class Template Reference

#include <ComplexTmplDec.hxx>

List of all members.

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

Detailed Description

template<class T>
class CLAM::ComplexTmpl< T >

Definition at line 33 of file ComplexTmplDec.hxx.


Constructor & Destructor Documentation

template<class T>
CLAM::ComplexTmpl< T >::ComplexTmpl ( re = 0.f,
im = 0.f 
) [inline]

Definition at line 40 of file ComplexTmplDec.hxx.

template<class T>
CLAM::ComplexTmpl< T >::ComplexTmpl ( const ComplexTmpl< T > &  rhs  )  [inline]

Definition at line 41 of file ComplexTmplDec.hxx.


Member Function Documentation

template<class T>
const T CLAM::ComplexTmpl< T >::Ang (  )  const [inline]

returns angle

Definition at line 69 of file ComplexTmplDec.hxx.

References CLAM_atan2().

template<class T>
const T CLAM::ComplexTmpl< T >::Imag (  )  const [inline]

Definition at line 44 of file ComplexTmplDec.hxx.

template<class T>
const T CLAM::ComplexTmpl< T >::Mag (  )  const [inline]

returns magnitude

Definition at line 50 of file ComplexTmplDec.hxx.

References CLAM::Abs(), and CLAM_sqrt().

template<class T>
bool CLAM::ComplexTmpl< T >::operator!= ( const ComplexTmpl< T > &  b  )  const [inline]

complex '!=' operator

Definition at line 154 of file ComplexTmplDec.hxx.

template<class T>
ComplexTmpl<T> CLAM::ComplexTmpl< T >::operator* ( const T &  scalar  )  const [inline]

Product by a scalar.

Definition at line 134 of file ComplexTmplDec.hxx.

template<class T>
ComplexTmpl<T> CLAM::ComplexTmpl< T >::operator* ( const ComplexTmpl< T > &  rhs  )  const [inline]

complex '*' operator

Definition at line 128 of file ComplexTmplDec.hxx.

template<class T>
ComplexTmpl<T> CLAM::ComplexTmpl< T >::operator+ ( const ComplexTmpl< T > &  rhs  )  const [inline]

complex '+' operator

Definition at line 116 of file ComplexTmplDec.hxx.

template<class T>
ComplexTmpl<T>& CLAM::ComplexTmpl< T >::operator+= ( const ComplexTmpl< T > &  rhs  )  [inline]

complex '+=' operator

Definition at line 100 of file ComplexTmplDec.hxx.

template<class T>
ComplexTmpl<T> CLAM::ComplexTmpl< T >::operator- ( const ComplexTmpl< T > &  rhs  )  const [inline]

complex '-' operator

Definition at line 122 of file ComplexTmplDec.hxx.

template<class T>
ComplexTmpl<T>& CLAM::ComplexTmpl< T >::operator-= ( const ComplexTmpl< T > &  rhs  )  [inline]

complex '-=' operator

Definition at line 108 of file ComplexTmplDec.hxx.

template<class T>
ComplexTmpl<T> CLAM::ComplexTmpl< T >::operator/ ( const ComplexTmpl< T > &  rhs  )  const [inline]

complex '/' operator

Definition at line 140 of file ComplexTmplDec.hxx.

template<class T>
ComplexTmpl<T>& CLAM::ComplexTmpl< T >::operator= ( const ComplexTmpl< T > &  rhs  )  [inline]

complex '=' operator

Definition at line 91 of file ComplexTmplDec.hxx.

template<class T>
ComplexTmpl<T>& CLAM::ComplexTmpl< T >::operator= ( const T  re  )  [inline]

complex '=' operator (float)

Definition at line 83 of file ComplexTmplDec.hxx.

template<class T>
bool CLAM::ComplexTmpl< T >::operator== ( const ComplexTmpl< T > &  b  )  const [inline]

complex '==' operator

Definition at line 148 of file ComplexTmplDec.hxx.

template<class T>
const T CLAM::ComplexTmpl< T >::Real (  )  const [inline]

Definition at line 43 of file ComplexTmplDec.hxx.

template<class T>
void CLAM::ComplexTmpl< T >::SetImag ( const T  im  )  [inline]

Definition at line 47 of file ComplexTmplDec.hxx.

Referenced by CLAM::operator>>().

template<class T>
void CLAM::ComplexTmpl< T >::SetReal ( const T  re  )  [inline]

Definition at line 46 of file ComplexTmplDec.hxx.

Referenced by CLAM::operator>>().

template<class T>
const T CLAM::ComplexTmpl< T >::SquaredMag (  )  const [inline]

returns squared magnitude

Definition at line 63 of file ComplexTmplDec.hxx.

template<class T>
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().


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3