Logo ROOT  
Reference Guide
ROOT::Geom::Vertex_t Struct Reference

Definition at line 21 of file TGeoVector3.h.

Public Member Functions

 Vertex_t (const double a, const double b, const double c)
 
 Vertex_t (const double a=0.)
 
Vertex_t Abs () const
 
void CopyTo (double *dest) const
 
double Dot (Vertex_t const &right) const
 The dot product of two vector. More...
 
bool IsNormalized () const
 
double Length () const
 
double Length2 () const
 
double Mag () const
 
double Mag2 () const
 
double Max () const
 
double Min () const
 
void Normalize ()
 Normalizes the vector by dividing each entry by the length. More...
 
Vertex_toperator*= (const double &scalar)
 
Vertex_toperator*= (const Vertex_t &other)
 
Vertex_toperator+= (const double &scalar)
 
Vertex_toperator+= (const Vertex_t &other)
 
Vertex_toperator-= (const double &scalar)
 
Vertex_toperator-= (const Vertex_t &other)
 
Vertex_toperator/= (const double &scalar)
 
Vertex_toperator/= (const Vertex_t &other)
 
doubleoperator[] (const int index)
 
double const & operator[] (const int index) const
 
double Perp () const
 
double Perp2 () const
 
double Phi () const
 
void Set (const double a)
 
void Set (double const &a, double const &b, double const &c)
 
double Theta () const
 
Vertex_t Unit () const
 
doublex ()
 
double const & x () const
 
doubley ()
 
double const & y () const
 
doublez ()
 
double const & z () const
 

Static Public Member Functions

static Vertex_t Cross (Vertex_t const &left, Vertex_t const &right)
 The cross (vector) product of two Vector3D<T> objects. More...
 
static double Dot (Vertex_t const &left, Vertex_t const &right)
 The dot product of two vector objects. More...
 

Public Attributes

double fVec [3] = {0.}
 

#include <TGeoVector3.h>

Constructor & Destructor Documentation

◆ Vertex_t() [1/2]

ROOT::Geom::Vertex_t::Vertex_t ( const double  a,
const double  b,
const double  c 
)
inline

Definition at line 24 of file TGeoVector3.h.

◆ Vertex_t() [2/2]

ROOT::Geom::Vertex_t::Vertex_t ( const double  a = 0.)
inline

Definition at line 31 of file TGeoVector3.h.

Member Function Documentation

◆ Abs()

Vertex_t ROOT::Geom::Vertex_t::Abs ( ) const
inline

Definition at line 141 of file TGeoVector3.h.

◆ CopyTo()

void ROOT::Geom::Vertex_t::CopyTo ( double dest) const
inline

Definition at line 74 of file TGeoVector3.h.

◆ Cross()

static Vertex_t ROOT::Geom::Vertex_t::Cross ( Vertex_t const &  left,
Vertex_t const &  right 
)
inlinestatic

The cross (vector) product of two Vector3D<T> objects.

Definition at line 135 of file TGeoVector3.h.

◆ Dot() [1/2]

static double ROOT::Geom::Vertex_t::Dot ( Vertex_t const &  left,
Vertex_t const &  right 
)
inlinestatic

The dot product of two vector objects.

Definition at line 97 of file TGeoVector3.h.

◆ Dot() [2/2]

double ROOT::Geom::Vertex_t::Dot ( Vertex_t const &  right) const
inline

The dot product of two vector.

Definition at line 103 of file TGeoVector3.h.

◆ IsNormalized()

bool ROOT::Geom::Vertex_t::IsNormalized ( ) const
inline

Definition at line 121 of file TGeoVector3.h.

◆ Length()

double ROOT::Geom::Vertex_t::Length ( ) const
inline

Definition at line 111 of file TGeoVector3.h.

◆ Length2()

double ROOT::Geom::Vertex_t::Length2 ( ) const
inline

Definition at line 113 of file TGeoVector3.h.

◆ Mag()

double ROOT::Geom::Vertex_t::Mag ( ) const
inline
Returns
Magnitude of the vector.

Definition at line 109 of file TGeoVector3.h.

◆ Mag2()

double ROOT::Geom::Vertex_t::Mag2 ( ) const
inline
Returns
Squared magnitude of the vector.

Definition at line 106 of file TGeoVector3.h.

◆ Max()

double ROOT::Geom::Vertex_t::Max ( ) const
inline

Definition at line 145 of file TGeoVector3.h.

◆ Min()

double ROOT::Geom::Vertex_t::Min ( ) const
inline

Definition at line 143 of file TGeoVector3.h.

◆ Normalize()

void ROOT::Geom::Vertex_t::Normalize ( )
inline

Normalizes the vector by dividing each entry by the length.

Definition at line 116 of file TGeoVector3.h.

◆ operator*=() [1/2]

Vertex_t & ROOT::Geom::Vertex_t::operator*= ( const double scalar)
inline

Definition at line 58 of file TGeoVector3.h.

◆ operator*=() [2/2]

Vertex_t & ROOT::Geom::Vertex_t::operator*= ( const Vertex_t other)
inline

Definition at line 58 of file TGeoVector3.h.

◆ operator+=() [1/2]

Vertex_t & ROOT::Geom::Vertex_t::operator+= ( const double scalar)
inline

Definition at line 58 of file TGeoVector3.h.

◆ operator+=() [2/2]

Vertex_t & ROOT::Geom::Vertex_t::operator+= ( const Vertex_t other)
inline

Definition at line 58 of file TGeoVector3.h.

◆ operator-=() [1/2]

Vertex_t & ROOT::Geom::Vertex_t::operator-= ( const double scalar)
inline

Definition at line 58 of file TGeoVector3.h.

◆ operator-=() [2/2]

Vertex_t & ROOT::Geom::Vertex_t::operator-= ( const Vertex_t other)
inline

Definition at line 58 of file TGeoVector3.h.

◆ operator/=() [1/2]

Vertex_t & ROOT::Geom::Vertex_t::operator/= ( const double scalar)
inline

Definition at line 59 of file TGeoVector3.h.

◆ operator/=() [2/2]

Vertex_t & ROOT::Geom::Vertex_t::operator/= ( const Vertex_t other)
inline

Definition at line 59 of file TGeoVector3.h.

◆ operator[]() [1/2]

double & ROOT::Geom::Vertex_t::operator[] ( const int  index)
inline

Definition at line 38 of file TGeoVector3.h.

◆ operator[]() [2/2]

double const & ROOT::Geom::Vertex_t::operator[] ( const int  index) const
inline

Definition at line 39 of file TGeoVector3.h.

◆ Perp()

double ROOT::Geom::Vertex_t::Perp ( ) const
inline
Returns
the length perpendicular to z direction

Definition at line 94 of file TGeoVector3.h.

◆ Perp2()

double ROOT::Geom::Vertex_t::Perp2 ( ) const
inline
Returns
the length squared perpendicular to z direction

Definition at line 91 of file TGeoVector3.h.

◆ Phi()

double ROOT::Geom::Vertex_t::Phi ( ) const
inline
Returns
Azimuthal angle between -pi and pi.

Definition at line 129 of file TGeoVector3.h.

◆ Set() [1/2]

void ROOT::Geom::Vertex_t::Set ( const double  a)
inline

Definition at line 88 of file TGeoVector3.h.

◆ Set() [2/2]

void ROOT::Geom::Vertex_t::Set ( double const &  a,
double const &  b,
double const &  c 
)
inline

Definition at line 81 of file TGeoVector3.h.

◆ Theta()

double ROOT::Geom::Vertex_t::Theta ( ) const
inline
Returns
Polar angle between 0 and pi.

Definition at line 132 of file TGeoVector3.h.

◆ Unit()

Vertex_t ROOT::Geom::Vertex_t::Unit ( ) const
inline

Definition at line 147 of file TGeoVector3.h.

◆ x() [1/2]

double & ROOT::Geom::Vertex_t::x ( )
inline

Definition at line 62 of file TGeoVector3.h.

◆ x() [2/2]

double const & ROOT::Geom::Vertex_t::x ( ) const
inline

Definition at line 66 of file TGeoVector3.h.

◆ y() [1/2]

double & ROOT::Geom::Vertex_t::y ( )
inline

Definition at line 68 of file TGeoVector3.h.

◆ y() [2/2]

double const & ROOT::Geom::Vertex_t::y ( ) const
inline

Definition at line 69 of file TGeoVector3.h.

◆ z() [1/2]

double & ROOT::Geom::Vertex_t::z ( )
inline

Definition at line 71 of file TGeoVector3.h.

◆ z() [2/2]

double const & ROOT::Geom::Vertex_t::z ( ) const
inline

Definition at line 72 of file TGeoVector3.h.

Member Data Documentation

◆ fVec

double ROOT::Geom::Vertex_t::fVec[3] = {0.}

Definition at line 22 of file TGeoVector3.h.

Collaboration diagram for ROOT::Geom::Vertex_t:
[legend]

The documentation for this struct was generated from the following file: