84 gROOT->Error(
"TVector2::Phi_0_2pi",
"function called with NaN");
88 while (x < 0.) x +=
kTWOPI;
97 gROOT->Error(
"TVector2::Phi_mpi_pi",
"function called with NaN");
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)
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
Buffer base class used for serializing objects.
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
TVector2 Rotate(Double_t phi) const
rotation by phi
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)
void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
Double_t Phi() const
return vector phi
virtual const char * GetTitle() const
Returns title of object.
TVector2 Unit() const
return module normalized to 1
void SetMagPhi(Double_t mag, Double_t phi)
set vector using mag and phi
Double_t Sqrt(Double_t x)
virtual const char * GetName() const
Returns name of object.
Double_t Mod() const
return modulo of this vector
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0