62 void Set(
float x0,
float y0);
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)
friend TVector2 operator+(const TVector2 &, const TVector2 &)
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...
TVector2 Proj(const TVector2 &v) const
void Set(const TVector2 &v)
#define ClassDef(name, id)
static Double_t Phi_mpi_pi(Double_t x)
Returns phi angle in the interval [-PI,PI)
friend Double_t operator^(const TVector2 &, const TVector2 &)
TVector2 Norm(const TVector2 &v) const
TVector2 & operator/=(Double_t s)
void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
Double_t operator*=(TVector2 const &v)
friend Double_t operator*(const TVector2 &, const TVector2 &)
friend TVector2 operator-(const TVector2 &, const TVector2 &)
Double_t Phi() const
Return vector phi.
TVector2 & operator-=(TVector2 const &v)
TVector2 & operator=(TVector2 const &v)
Mother of all ROOT objects.
Double_t DeltaPhi(const TVector2 &v) const
TVector2 & operator+=(TVector2 const &v)
TVector2 Unit() const
Return module normalized to 1.
void SetMagPhi(Double_t mag, Double_t phi)
Set vector using mag and phi.
Double_t Mod() const
Return modulo of this vector.