ROOT » GRAF3D » EVE » TEveVector2T<double>

class TEveVector2T<double>

 TEveVector

This class is also known as (typedefs to this class)

TEveVector2D

Function Members (Methods)

public:
~TEveVector2T<double>()
const double*Arr() const
double*Arr()
static TClass*Class()
doubleCross(const TEveVector2T<double>& a) const
doubleDistance(const TEveVector2T<double>& v) const
doubleDot(const TEveVector2T<double>& a) const
voidDump() const
TClass*IsA() const
doubleMag() const
doubleMag2() const
TEveVector2T<double>&Mult(const TEveVector2T<double>& a, double af)
voidNegateXY()
voidNormalize(double length = 1)
const double*operator const double *() const
double*operator double *()
TEveVector2T<double>&operator*=(double s)
TEveVector2T<double>&operator+=(const TEveVector2T<double>& v)
TEveVector2T<double>&operator-=(const TEveVector2T<double>& v)
TEveVector2T<double>&operator=(const TEveVector2T<double>&)
TEveVector2T<double>&operator=(TEveVector2T<double>&&)
double&operator[](Int_t idx)
doubleoperator[](Int_t idx) const
doublePhi() const
voidSet(const Float_t* v)
voidSet(const Double_t* v)
voidSet(double x, double y)
voidShowMembers(TMemberInspector& insp) const
doubleSquareDistance(const TEveVector2T<double>& v) const
voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TEveVector2T<double>&Sub(const TEveVector2T<double>& p, const TEveVector2T<double>& q)
TEveVector2T<double>()
TEveVector2T<double>(const Float_t* v)
TEveVector2T<double>(const Double_t* v)
TEveVector2T<double>(const TEveVector2T<double>&)
TEveVector2T<double>(TEveVector2T<double>&&)
TEveVector2T<double>(double x, double y)

Data Members

public:
doublefXComponents of the point.
doublefYComponents of the point.

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

template<typename TT> void TEveVector2T<TT> Normalize(double length = 1)
 Normalize the vector to length if current length is non-zero.
template<typename TT> void TEveVector2T<TT> Dump() const
 Dump to stdout as "(x, y)\n".
TT TEveVector2T<TT> Phi() const
TT TEveVector2T<TT> Distance(const TEveVector2T<double>& v) const
TT TEveVector2T<TT> SquareDistance(const TEveVector2T<double>& v) const
TT TEveVector2T<TT> Dot(const TEveVector2T<double>& a) const
TT TEveVector2T<TT> Cross(const TEveVector2T<double>& a) const
TEveVector2T<TT>& TEveVector2T<TT> Sub(const TEveVector2T<double>& p, const TEveVector2T<double>& q)
TEveVector2T<TT>& TEveVector2T<TT> Mult(const TEveVector2T<double>& a, double af)
const TT* Arr() const
{ return &fX; }
TT* Arr()
{ return &fX; }
TEveVectorT& operator*=(double s)
{ fX *= s; fY *= s; fZ *= s; return *this; }
TEveVectorT& operator+=(const TEveVector2T<double>& v)
{ fX += v.fX; fY += v.fY; fZ += v.fZ; return *this; }
TEveVectorT& operator-=(const TEveVector2T<double>& v)
{ fX -= v.fX; fY -= v.fY; fZ -= v.fZ; return *this; }
void Set(const Float_t* v)
{ fX = v[0]; fY = v[1]; fZ = v[2]; }
void Set(const Double_t* v)
{ fX = v[0]; fY = v[1]; fZ = v[2]; }
void Set(TT x, TT y, TT z)
{ fX = x; fY = y; fZ = z; }
TT Mag2() const
{ return fX*fX + fY*fY + fZ*fZ; }
TT Mag() const
{ return TMath::Sqrt(Mag2()); }
TT& operator[](Int_t idx)
{ return (&fX)[idx]; }
TT operator[](Int_t idx) const
{ return (&fX)[idx]; }
void NegateXY()
{ fX = - fX; fY = -fY; }