62 void Set(
float x0,
float y0);
friend TVector2 operator/(const TVector2 &, Double_t)
static Double_t Phi_0_2pi(Double_t x)
(static function) returns phi angle in the interval [0,2*PI)
TVector2 Unit() const
return module normalized to 1
Double_t Mod() const
return modulo of this vector
friend TVector2 operator+(const TVector2 &, const TVector2 &)
TVector2 operator-(const TVector2 &v1, const TVector2 &v2)
TVector2 operator*(const TVector2 &v, Double_t s)
TVector2 Norm(const TVector2 &v) const
void Set(const TVector2 &v)
#define ClassDef(name, id)
static Double_t Phi_mpi_pi(Double_t x)
(static function) returns phi angle in the interval [-PI,PI)
friend Double_t operator^(const TVector2 &, const TVector2 &)
Double_t operator^(const TVector2 &v1, const TVector2 &v2)
Double_t DeltaPhi(const TVector2 &v) const
TVector2 operator+(const TVector2 &v1, const TVector2 &v2)
TVector2 & operator/=(Double_t s)
TVector2 Proj(const TVector2 &v) const
Double_t operator*=(TVector2 const &v)
friend Double_t operator*(const TVector2 &, const TVector2 &)
friend TVector2 operator-(const TVector2 &, const TVector2 &)
TVector2 operator/(const TVector2 &v, Double_t s)
Double_t Phi() const
return vector phi
TVector2 & operator-=(TVector2 const &v)
TVector2 & operator=(TVector2 const &v)
TVector2 Rotate(Double_t phi) const
rotation by phi
Mother of all ROOT objects.
TVector2 & operator+=(TVector2 const &v)
void SetMagPhi(Double_t mag, Double_t phi)
set vector using mag and phi
void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.