92 gROOT->Error(
"TVector2::Phi_0_2pi",
"function called with NaN");
105 gROOT->Error(
"TVector2::Phi_mpi_pi",
"function called with NaN");
133void TVector2::Streamer(
TBuffer &R__b)
143 if (R__v < 2) TObject::Streamer(R__b);
void Printf(const char *fmt,...)
Buffer base class used for serializing objects.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual const char * GetName() const
Returns name of object.
virtual const char * GetTitle() const
Returns title of object.
TVector2 is a general two vector class, which can be used for the description of different vectors in...
Double_t Phi() const
Return vector phi.
void SetMagPhi(Double_t mag, Double_t phi)
Set vector using mag and phi.
static Double_t Phi_0_2pi(Double_t x)
Returns phi angle in the interval [0,2*PI)
static Double_t Phi_mpi_pi(Double_t x)
Returns phi angle in the interval [-PI,PI)
TVector2 Rotate(Double_t phi) const
Rotation by phi.
void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
Double_t Mod() const
Return modulo of this vector.
TVector2 Unit() const
Return module normalized to 1.
Double_t ATan2(Double_t y, Double_t x)
Double_t Sqrt(Double_t x)
constexpr Double_t RadToDeg()
Conversion from radian to degree: