class ROOT::Math::Polar2D<Double32_t>

Class describing a polar 2D coordinate system based on r and phi
Phi is restricted to be in the range [-PI,PI)

@ingroup GenVector

Function Members (Methods)

voidGetCoordinates(ROOT::Math::Polar2D<Double32_t>::Scalar& r, ROOT::Math::Polar2D<Double32_t>::Scalar& phi) const
ROOT::Math::Polar2D<Double32_t>::ScalarMag2() const
booloperator!=(const ROOT::Math::Polar2D<Double32_t>& rhs) const
ROOT::Math::Polar2D<Double32_t>&operator=(const ROOT::Math::Polar2D<Double32_t>& v)
booloperator==(const ROOT::Math::Polar2D<Double32_t>& rhs) const
ROOT::Math::Polar2D<Double32_t>::ScalarPhi() const
ROOT::Math::Polar2D<Double32_t>Polar2D<Double32_t>(const ROOT::Math::Polar2D<Double32_t>& v)
ROOT::Math::Polar2D<Double32_t>Polar2D<Double32_t>(Double32_t r, Double32_t phi)
ROOT::Math::Polar2D<Double32_t>::ScalarR() const
voidRotate(Double32_t angle)
voidScale(Double32_t a)
voidSetCoordinates(ROOT::Math::Polar2D<Double32_t>::Scalar r, ROOT::Math::Polar2D<Double32_t>::Scalar phi)
voidSetPhi(const Double32_t& phi)
voidSetR(const Double32_t& r)
voidSetX(ROOT::Math::Polar2D<Double32_t>::Scalar x)
voidSetXY(ROOT::Math::Polar2D<Double32_t>::Scalar x, ROOT::Math::Polar2D<Double32_t>::Scalar y)
voidSetY(ROOT::Math::Polar2D<Double32_t>::Scalar y)
ROOT::Math::Polar2D<Double32_t>::ScalarX() const
Double32_tx() const
ROOT::Math::Polar2D<Double32_t>::ScalarY() const
Double32_ty() const
static doublepi()

Data Members


Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Polar2D & operator=(const ROOT::Math::Polar2D<Double32_t>& v)
assignment operator

void SetCoordinates(ROOT::Math::Polar2D<Double32_t>::Scalar r, ROOT::Math::Polar2D<Double32_t>::Scalar phi)
Set internal data based on 2 Scalar numbers

{ fR=r; fPhi=phi; Restrict(); }
void GetCoordinates(ROOT::Math::Polar2D<Double32_t>::Scalar& r, ROOT::Math::Polar2D<Double32_t>::Scalar& phi) const
get internal data into 2 Scalar numbers

{r=fR; phi=fPhi;}
Scalar R()
{ return fR;}
Scalar Phi()
{ return fPhi; }
Scalar X()
{ return fR*std::cos(fPhi);}
Scalar Y()
{ return fR*std::sin(fPhi);}
Scalar Mag2()
{ return fR*fR;}
void SetR(const Double32_t& r)
 setters (only for data members)

set the r coordinate value keeping phi constant

void SetPhi(const Double32_t& phi)
set the phi coordinate value keeping r constant

void SetXY(ROOT::Math::Polar2D<Double32_t>::Scalar x, ROOT::Math::Polar2D<Double32_t>::Scalar y)
 all values using cartesian coordina

double pi()
{ return M_PI; }
void Scale(Double32_t a)
cale by a scalar quantity - for polar coordinates r change

void Rotate(Double32_t angle)
ate the vec

bool operator==(const ROOT::Math::Polar2D<Double32_t>& rhs) const
Exact equality

bool operator!=(const ROOT::Math::Polar2D<Double32_t>& rhs) const
{return !(operator==(rhs));}
T x()
 ============= Compatibility section ==================
 The following make this coordinate system look enough like a CLHEP
 vector that an assignment member template can work with either
{ return X();}
T y()
{ return Y();}
void SetX(ROOT::Math::Polar2D<Double32_t>::Scalar x)
 ============= Specializations for improved speed ==================
 ====== Set member functions for coordinates in other systems =======
void SetY(ROOT::Math::Polar2D<Double32_t>::Scalar y)

Last update: root/mathcore:$Id: Polar2D.h 21503 2007-12-19 17:34:54Z moneta $
Copyright (c) 2005 , LCG ROOT MathLib Team and *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.