library: libPhysics #include "TVector2.h"

# TVector2

class description - source file - inheritance tree (.pdf)

## class TVector2 : public TObject

| Inheritance Chart:

`TObject`

<-

`TVector2`

        public:

                          TVector2()
                          TVector2(Double_t* s)
                          TVector2(Double_t x0, Double_t y0)
                 TVector2 Unit() const
                 TVector2 Ort() const
                 TVector2 Proj(const TVector2& v) const
                 TVector2 Norm(const TVector2& v) const
                 TVector2 Rotate(Double_t phi)
                          TVector2(const TVector2&)
                  virtual ~TVector2()
           static TClass* Class()
                 Double_t DeltaPhi(const TVector2& v) const
          virtual TClass* IsA() const
                 Double_t Mod() const
                 Double_t Mod2() const
                 Double_t operator*=(TVector2 const& v)
                TVector2& operator*=(Double_t s)
                 Double_t operator*=(const TVector2& v)
                TVector2& operator+=(TVector2 const& v)
                TVector2& operator-=(TVector2 const& v)
                TVector2& operator/=(Double_t s)
                TVector2& operator=(TVector2 const& v)
                 Double_t Phi() const
          static Double_t Phi_0_2pi(Double_t x)
          static Double_t Phi_mpi_pi(Double_t x)
             virtual void Print(Option_t* option = "") const
                 Double_t Px() const
                 Double_t Py() const
                     void Set(const TVector2& v)
                     void Set(Double_t x0, Double_t y0)
                     void Set(float x0, float y0)
                     void SetMagPhi(Double_t mag, Double_t phi)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
                 Double_t X() const
                 Double_t Y() const

### Data Members

        protected:

          Double_t fX  components of the vector
          Double_t fY

## Class Description

TVector2()

TVector2(Double_t *v)

TVector2(Double_t x0, Double_t y0)

~TVector2()

Double_t Phi_0_2pi(Double_t x)

     (static function) returns phi angle in the interval [0,2*PI)

Double_t Phi_mpi_pi(Double_t x)

     (static function) returns phi angle in the interval [-PI,PI)

TVector2 Rotate (Double_t phi)

void Streamer(TBuffer &R__b)

     Stream an object of class TVector2.

void Print(Option_t*)const

### Inline Functions

              TVector2& operator=(TVector2 const& v)
              TVector2& operator+=(TVector2 const& v)
              TVector2& operator-=(TVector2 const& v)
               Double_t operator*=(TVector2 const& v)
              TVector2& operator*=(Double_t s)
              TVector2& operator/=(Double_t s)
                   void Set(const TVector2& v)
                   void Set(Double_t x0, Double_t y0)
                   void Set(float x0, float y0)
               Double_t Mod2() const
               Double_t Mod() const
               Double_t Px() const
               Double_t Py() const
               Double_t X() const
               Double_t Y() const
               Double_t Phi() const
               Double_t DeltaPhi(const TVector2& v) const
                   void SetMagPhi(Double_t mag, Double_t phi)
               TVector2 Unit() const
               TVector2 Ort() const
               TVector2 Proj(const TVector2& v) const
               TVector2 Norm(const TVector2& v) const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void StreamerNVirtual(TBuffer& b)
               Double_t operator*=(const TVector2& v)
               TVector2 TVector2(const TVector2&)

Author: Pasha Murat 12/02/99
Last update: root/physics:$Name: $:$Id: TVector2.cxx,v 1.4 2004/04/29 17:43:59 brun Exp $