Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveVector2T< TT > Class Template Reference

template<typename TT>
class TEveVector2T< TT >

Minimal, templated two-vector.

No TObject inheritance and virtual functions. Also used in VSD.

Definition at line 310 of file TEveVector.h.

Public Member Functions

 TEveVector2T ()
 
 TEveVector2T (const Double_t *v)
 
 TEveVector2T (const Float_t *v)
 
template<typename OO >
 TEveVector2T (const TEveVector2T< OO > &v)
 
 TEveVector2T (TT x, TT y)
 
TT * Arr ()
 
const TT * Arr () const
 
TT Cross (const TEveVector2T &a) const
 
TT Distance (const TEveVector2T &v) const
 
TT Dot (const TEveVector2T &a) const
 
void Dump () const
 Dump to stdout as "(x, y)\n".
 
TClassIsA () const
 
TT Mag () const
 
TT Mag2 () const
 
TEveVector2TMult (const TEveVector2T &a, TT af)
 
void NegateXY ()
 
void Normalize (TT length=1)
 Normalize the vector to length if current length is non-zero.
 
 operator const TT * () const
 
 operator TT * ()
 
TEveVector2Toperator*= (TT s)
 
TEveVector2Toperator+= (const TEveVector2T &v)
 
TEveVector2Toperator-= (const TEveVector2T &v)
 
TT & operator[] (Int_t idx)
 
TT operator[] (Int_t idx) const
 
TT Phi () const
 
void Set (const Double_t *v)
 
void Set (const Float_t *v)
 
template<typename OO >
void Set (const TEveVector2T< OO > &v)
 
void Set (TT x, TT y)
 
TT SquareDistance (const TEveVector2T &v) const
 
void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
TEveVector2TSub (const TEveVector2T &p, const TEveVector2T &q)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Public Attributes

TT fX
 
TT fY
 

#include <TEveVector.h>

Constructor & Destructor Documentation

◆ TEveVector2T() [1/5]

template<typename TT >
TEveVector2T< TT >::TEveVector2T ( )
inline

Definition at line 315 of file TEveVector.h.

◆ TEveVector2T() [2/5]

template<typename TT >
template<typename OO >
TEveVector2T< TT >::TEveVector2T ( const TEveVector2T< OO > &  v)
inline

Definition at line 317 of file TEveVector.h.

◆ TEveVector2T() [3/5]

template<typename TT >
TEveVector2T< TT >::TEveVector2T ( const Float_t v)
inline

Definition at line 318 of file TEveVector.h.

◆ TEveVector2T() [4/5]

template<typename TT >
TEveVector2T< TT >::TEveVector2T ( const Double_t v)
inline

Definition at line 319 of file TEveVector.h.

◆ TEveVector2T() [5/5]

template<typename TT >
TEveVector2T< TT >::TEveVector2T ( TT  x,
TT  y 
)
inline

Definition at line 320 of file TEveVector.h.

Member Function Documentation

◆ Arr() [1/2]

template<typename TT >
TT * TEveVector2T< TT >::Arr ( )
inline

Definition at line 335 of file TEveVector.h.

◆ Arr() [2/2]

template<typename TT >
const TT * TEveVector2T< TT >::Arr ( ) const
inline

Definition at line 334 of file TEveVector.h.

◆ Class()

template<typename TT >
static TClass * TEveVector2T< TT >::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

template<typename TT >
static const char * TEveVector2T< TT >::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

template<typename TT >
static constexpr Version_t TEveVector2T< TT >::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 362 of file TEveVector.h.

◆ Cross()

template<typename TT >
TT TEveVector2T< TT >::Cross ( const TEveVector2T< TT > &  a) const
inline

Definition at line 401 of file TEveVector.h.

◆ DeclFileName()

template<typename TT >
static const char * TEveVector2T< TT >::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 362 of file TEveVector.h.

◆ Distance()

template<typename TT >
TT TEveVector2T< TT >::Distance ( const TEveVector2T< TT > &  v) const
inline

Definition at line 378 of file TEveVector.h.

◆ Dot()

template<typename TT >
TT TEveVector2T< TT >::Dot ( const TEveVector2T< TT > &  a) const
inline

Definition at line 394 of file TEveVector.h.

◆ Dump()

template<typename TT >
void TEveVector2T< TT >::Dump

Dump to stdout as "(x, y)\n".

Definition at line 146 of file TEveVector.cxx.

◆ IsA()

template<typename TT >
TClass * TEveVector2T< TT >::IsA ( ) const
inline
Returns
TClass describing current object

Definition at line 362 of file TEveVector.h.

◆ Mag()

template<typename TT >
TT TEveVector2T< TT >::Mag ( ) const
inline

Definition at line 350 of file TEveVector.h.

◆ Mag2()

template<typename TT >
TT TEveVector2T< TT >::Mag2 ( ) const
inline

Definition at line 349 of file TEveVector.h.

◆ Mult()

template<typename TT >
TEveVector2T< TT > & TEveVector2T< TT >::Mult ( const TEveVector2T< TT > &  a,
TT  af 
)
inline

Definition at line 417 of file TEveVector.h.

◆ NegateXY()

template<typename TT >
void TEveVector2T< TT >::NegateXY ( )
inline

Definition at line 344 of file TEveVector.h.

◆ Normalize()

template<typename TT >
void TEveVector2T< TT >::Normalize ( TT  length = 1)

Normalize the vector to length if current length is non-zero.

Definition at line 133 of file TEveVector.cxx.

◆ operator const TT *()

template<typename TT >
TEveVector2T< TT >::operator const TT * ( ) const
inline

Definition at line 324 of file TEveVector.h.

◆ operator TT *()

template<typename TT >
TEveVector2T< TT >::operator TT * ( )
inline

Definition at line 325 of file TEveVector.h.

◆ operator*=()

template<typename TT >
TEveVector2T & TEveVector2T< TT >::operator*= ( TT  s)
inline

Definition at line 327 of file TEveVector.h.

◆ operator+=()

template<typename TT >
TEveVector2T & TEveVector2T< TT >::operator+= ( const TEveVector2T< TT > &  v)
inline

Definition at line 328 of file TEveVector.h.

◆ operator-=()

template<typename TT >
TEveVector2T & TEveVector2T< TT >::operator-= ( const TEveVector2T< TT > &  v)
inline

Definition at line 329 of file TEveVector.h.

◆ operator[]() [1/2]

template<typename TT >
TT & TEveVector2T< TT >::operator[] ( Int_t  idx)
inline

Definition at line 331 of file TEveVector.h.

◆ operator[]() [2/2]

template<typename TT >
TT TEveVector2T< TT >::operator[] ( Int_t  idx) const
inline

Definition at line 332 of file TEveVector.h.

◆ Phi()

template<typename TT >
TT TEveVector2T< TT >::Phi
inline

Definition at line 371 of file TEveVector.h.

◆ Set() [1/4]

template<typename TT >
void TEveVector2T< TT >::Set ( const Double_t v)
inline

Definition at line 338 of file TEveVector.h.

◆ Set() [2/4]

template<typename TT >
void TEveVector2T< TT >::Set ( const Float_t v)
inline

Definition at line 337 of file TEveVector.h.

◆ Set() [3/4]

template<typename TT >
template<typename OO >
void TEveVector2T< TT >::Set ( const TEveVector2T< OO > &  v)
inline

Definition at line 342 of file TEveVector.h.

◆ Set() [4/4]

template<typename TT >
void TEveVector2T< TT >::Set ( TT  x,
TT  y 
)
inline

Definition at line 339 of file TEveVector.h.

◆ SquareDistance()

template<typename TT >
TT TEveVector2T< TT >::SquareDistance ( const TEveVector2T< TT > &  v) const
inline

Definition at line 386 of file TEveVector.h.

◆ Streamer()

template<typename TT >
void TEveVector2T< TT >::Streamer ( TBuffer )

◆ StreamerNVirtual()

template<typename TT >
void TEveVector2T< TT >::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 362 of file TEveVector.h.

◆ Sub()

template<typename TT >
TEveVector2T< TT > & TEveVector2T< TT >::Sub ( const TEveVector2T< TT > &  p,
const TEveVector2T< TT > &  q 
)
inline

Definition at line 408 of file TEveVector.h.

Member Data Documentation

◆ fX

template<typename TT >
TT TEveVector2T< TT >::fX

Definition at line 313 of file TEveVector.h.

◆ fY

template<typename TT >
TT TEveVector2T< TT >::fY

Definition at line 313 of file TEveVector.h.

  • graf3d/eve/inc/TEveVector.h
  • graf3d/eve/src/TEveVector.cxx