CLAM::Polar Class Reference

#include <Polar.hxx>

List of all members.

Public Member Functions

 Polar (T mag=0.0, T ang=0.0)
const T Mag (void) const
const T Ang (void) const
void SetMag (const T &mag)
void SetAng (const T &ang)
const T Real (void) const
const T Imag (void) const
const Polaroperator= (const float mag)
const Polaroperator= (const Polar &a)
const Polaroperator+= (const Polar &a)
const Polaroperator-= (const Polar &a)
Polar operator- (const Polar &b) const
Polar operator+ (const Polar &b) const
Polar operator* (const Polar &b) const
Polar operator/ (const Polar &b) const
bool operator== (const Polar &b) const
bool operator!= (const Polar &b) const

Friends

Polar ToComplex (const T &real, const T &imag)

Detailed Description

Definition at line 33 of file Polar.hxx.


Constructor & Destructor Documentation

CLAM::Polar::Polar ( mag = 0.0,
ang = 0.0 
) [inline]

Definition at line 40 of file Polar.hxx.


Member Function Documentation

const T CLAM::Polar::Ang ( void   )  const [inline]

Definition at line 47 of file Polar.hxx.

const T CLAM::Polar::Imag ( void   )  const [inline]

Definition at line 59 of file Polar.hxx.

References CLAM_sin().

const T CLAM::Polar::Mag ( void   )  const [inline]

Definition at line 46 of file Polar.hxx.

bool CLAM::Polar::operator!= ( const Polar b  )  const [inline]

Definition at line 122 of file Polar.hxx.

Polar CLAM::Polar::operator* ( const Polar b  )  const [inline]

Definition at line 101 of file Polar.hxx.

Polar CLAM::Polar::operator+ ( const Polar b  )  const

Definition at line 64 of file Polar.cxx.

References CLAM_atan2(), CLAM_cos(), CLAM_sin(), and CLAM_sqrt().

const Polar & CLAM::Polar::operator+= ( const Polar a  ) 

Definition at line 30 of file Polar.cxx.

References CLAM_cos(), and CLAM_sin().

Polar CLAM::Polar::operator- ( const Polar b  )  const

Definition at line 79 of file Polar.cxx.

References CLAM_atan2(), CLAM_cos(), CLAM_sin(), and CLAM_sqrt().

const Polar & CLAM::Polar::operator-= ( const Polar a  ) 

Definition at line 47 of file Polar.cxx.

References CLAM_atan2(), CLAM_cos(), CLAM_sin(), and CLAM_sqrt().

Polar CLAM::Polar::operator/ ( const Polar b  )  const [inline]

Definition at line 108 of file Polar.hxx.

const Polar& CLAM::Polar::operator= ( const Polar a  )  [inline]

Definition at line 80 of file Polar.hxx.

const Polar& CLAM::Polar::operator= ( const float  mag  )  [inline]

Definition at line 72 of file Polar.hxx.

bool CLAM::Polar::operator== ( const Polar b  )  const [inline]

Definition at line 115 of file Polar.hxx.

const T CLAM::Polar::Real ( void   )  const [inline]

Definition at line 53 of file Polar.hxx.

References CLAM_cos().

void CLAM::Polar::SetAng ( const T &  ang  )  [inline]

Definition at line 50 of file Polar.hxx.

void CLAM::Polar::SetMag ( const T &  mag  )  [inline]

Definition at line 49 of file Polar.hxx.


Friends And Related Function Documentation

Polar ToComplex ( const T &  real,
const T &  imag 
) [friend]

Definition at line 65 of file Polar.hxx.


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