90 gROOT->Error(
"TVector2::Phi_0_2pi",
"function called with NaN");
94 while (x < 0.) x +=
kTWOPI;
103 gROOT->Error(
"TVector2::Phi_mpi_pi",
"function called with NaN");
131 void TVector2::Streamer(
TBuffer &R__b)
141 if (R__v < 2) TObject::Streamer(R__b);
static Double_t Phi_0_2pi(Double_t x)
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.
TVector2 is a general two vector class, which can be used for the description of different vectors in...
static Double_t Phi_mpi_pi(Double_t x)
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.
constexpr Double_t RadToDeg()
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