98 gROOT->Error(
"TVector2::Phi_0_2pi",
"function called with NaN");
111 gROOT->Error(
"TVector2::Phi_mpi_pi",
"function called with NaN");
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
Buffer base class used for serializing objects.
virtual Version_t ReadVersion(UInt_t *start=nullptr, UInt_t *bcnt=nullptr, const TClass *cl=nullptr)=0
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=nullptr)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual const char * GetName() const
Returns name of object.
virtual void Streamer(TBuffer &)
Stream an object of class TObject.
virtual const char * GetTitle() const
Returns title of object.
void Print(Option_t *option="") const override
This method must be overridden when a class wants to print itself.
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)
TClass * IsA() const override
void Streamer(TBuffer &) override
Stream an object of class TVector2.
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.
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)
Returns the principal value of the arc tangent of y/x, expressed in radians.
Double_t Sqrt(Double_t x)
Returns the square root of x.
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
constexpr Double_t RadToDeg()
Conversion from radian to degree: .
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.