62 void Set(
float x0,
float y0);
#define ClassDef(name, id)
TVector2 operator*(const TVector2 &v, Double_t s)
Double_t operator^(const TVector2 &v1, const TVector2 &v2)
TVector2 operator/(const TVector2 &v, Double_t s)
TVector2 operator-(const TVector2 &v1, const TVector2 &v2)
TVector2 operator+(const TVector2 &v1, const TVector2 &v2)
Mother of all ROOT objects.
TVector2 is a general two vector class, which can be used for the description of different vectors in...
friend TVector2 operator+(const TVector2 &, const TVector2 &)
Double_t Phi() const
Return vector phi.
TVector2 & operator=(TVector2 const &v)
void SetMagPhi(Double_t mag, Double_t phi)
Set vector using mag and phi.
TVector2 & operator-=(TVector2 const &v)
TVector2 & operator+=(TVector2 const &v)
friend TVector2 operator/(const TVector2 &, Double_t)
static Double_t Phi_0_2pi(Double_t x)
Returns phi angle in the interval [0,2*PI)
void Set(const TVector2 &v)
friend TVector2 operator-(const TVector2 &, const TVector2 &)
friend Double_t operator^(const TVector2 &, const TVector2 &)
friend Double_t operator*(const TVector2 &, const TVector2 &)
TVector2 Proj(const TVector2 &v) const
TVector2 Norm(const TVector2 &v) const
static Double_t Phi_mpi_pi(Double_t x)
Returns phi angle in the interval [-PI,PI)
TVector2 & operator/=(Double_t s)
TVector2 Rotate(Double_t phi) const
Rotation by phi.
Double_t operator*=(TVector2 const &v)
Double_t DeltaPhi(const TVector2 &v) const
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.
static constexpr double s