Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

TCplxRhoPhi Class Reference

#include <TComplex.h>


Public Member Functions

 TCplxRhoPhi (Double_t x, Double_t y)
Double_t GetRho ()
Double_t GetPhi ()
void Sqrt ()

Protected Attributes

Double_t fRho
Double_t fPhi


Constructor & Destructor Documentation

TCplxRhoPhi::TCplxRhoPhi Double_t  x,
Double_t  y
[inline]
 

Definition at line 33 of file TComplex.h.

References fPhi, fRho, and Sqrt().

00033                                      { fRho = TMath::Sqrt(x*x+y*y);
00034                                        fPhi = atan2(y,x); }


Member Function Documentation

Double_t TCplxRhoPhi::GetPhi  )  [inline]
 

Definition at line 36 of file TComplex.h.

References fPhi.

Referenced by TComplex::FromRhoPhi(), Log(), Log10(), Log2(), and Sqrt3().

00036 { return fPhi; }

Double_t TCplxRhoPhi::GetRho  )  [inline]
 

Definition at line 35 of file TComplex.h.

References fRho.

Referenced by TComplex::FromRhoPhi(), Log(), Log10(), Log2(), and Sqrt3().

00035 { return fRho; }

void TCplxRhoPhi::Sqrt  )  [inline]
 

Definition at line 37 of file TComplex.h.

References fPhi, fRho, and Sqrt().

Referenced by Sqrt().

00037 { fRho = TMath::Sqrt(fRho); fPhi = fPhi/2.0; }


Field Documentation

Double_t TCplxRhoPhi::fPhi [protected]
 

Definition at line 31 of file TComplex.h.

Referenced by GetPhi(), Sqrt(), and TCplxRhoPhi().

Double_t TCplxRhoPhi::fRho [protected]
 

Definition at line 30 of file TComplex.h.

Referenced by GetRho(), Sqrt(), and TCplxRhoPhi().


The documentation for this class was generated from the following file:
Generated on Fri Apr 23 16:23:48 2004 by doxygen 1.3.2