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");
124 Double_t amag = TMath::Abs(mag);
131 void TVector2::Streamer(TBuffer &R__b)
133 if (R__b.IsReading()) {
135 Version_t R__v = R__b.ReadVersion(&R__s, &R__c);
137 R__b.ReadClassBuffer(TVector2::Class(),
this, R__v, R__s, R__c);
141 if (R__v < 2) TObject::Streamer(R__b);
144 R__b.CheckByteCount(R__s, R__c, TVector2::IsA());
148 R__b.WriteClassBuffer(TVector2::Class(),
this);
155 Printf(
"%s %s (x,y)=(%f,%f) (rho,phi)=(%f,%f)",GetName(),GetTitle(),
X(),
Y(),
static Double_t Phi_0_2pi(Double_t x)
Returns phi angle in the interval [0,2*PI)
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
* x
Deprecated and error prone model selection interface.
Double_t Phi() const
Return vector phi.
constexpr Double_t RadToDeg()
Conversion from radian to degree: .
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)
Double_t Mod() const
Return modulo of this vector.