84 gROOT->Error(
"TVector2::Phi_0_2pi",
"function called with NaN");
87 while (x >= kTWOPI) x -=
kTWOPI;
88 while (x < 0.) x +=
kTWOPI;
97 gROOT->Error(
"TVector2::Phi_mpi_pi",
"function called with NaN");
100 while (x >= kPI) x -=
kTWOPI;
101 while (x < -kPI) x +=
kTWOPI;
125 void TVector2::Streamer(
TBuffer &R__b)
135 if (R__v < 2) TObject::Streamer(R__b);
static Double_t Phi_0_2pi(Double_t x)
(static function) returns phi angle in the interval [0,2*PI)
TVector2 Unit() const
return module normalized to 1
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
Double_t Mod() const
return modulo of this vector
Buffer base class used for serializing objects.
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
static Double_t Phi_mpi_pi(Double_t x)
(static function) returns phi angle in the interval [-PI,PI)
Double_t ATan2(Double_t, Double_t)
ClassImp(TVector2) TVector2
constructor
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
virtual const char * GetName() const
Returns name of object.
Double_t Phi() const
return vector phi
TVector2 Rotate(Double_t phi) const
rotation by phi
void SetMagPhi(Double_t mag, Double_t phi)
set vector using mag and phi
Double_t Sqrt(Double_t x)
virtual const char * GetTitle() const
Returns title of object.
void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0