Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Geom::Vertex_t Struct Reference

Definition at line 22 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.
 
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.
 
Vertex_t & operator*= (const double &scalar)
 
Vertex_t & operator*= (const Vertex_t &other)
 
Vertex_t & operator+= (const double &scalar)
 
Vertex_t & operator+= (const Vertex_t &other)
 
Vertex_t & operator-= (const double &scalar)
 
Vertex_t & operator-= (const Vertex_t &other)
 
Vertex_t & operator/= (const double &scalar)
 
Vertex_t & operator/= (const Vertex_t &other)
 
double & operator[] (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
 
double & x ()
 
double const & x () const
 
double & y ()
 
double const & y () const
 
double & z ()
 
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.
 
static double Dot (Vertex_t const &left, Vertex_t const &right)
 The dot product of two vector objects.
 

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 25 of file TGeoVector3.h.

◆ Vertex_t() [2/2]

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

Definition at line 32 of file TGeoVector3.h.

Member Function Documentation

◆ Abs()

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

Definition at line 142 of file TGeoVector3.h.

◆ CopyTo()

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

Definition at line 75 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 136 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 98 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 104 of file TGeoVector3.h.

◆ IsNormalized()

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

Definition at line 122 of file TGeoVector3.h.

◆ Length()

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

Definition at line 112 of file TGeoVector3.h.

◆ Length2()

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

Definition at line 114 of file TGeoVector3.h.

◆ Mag()

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

Definition at line 110 of file TGeoVector3.h.

◆ Mag2()

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

Definition at line 107 of file TGeoVector3.h.

◆ Max()

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

Definition at line 146 of file TGeoVector3.h.

◆ Min()

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

Definition at line 144 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 117 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]

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]

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]

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

Definition at line 60 of file TGeoVector3.h.

◆ operator/=() [2/2]

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

Definition at line 60 of file TGeoVector3.h.

◆ operator[]() [1/2]

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

Definition at line 39 of file TGeoVector3.h.

◆ operator[]() [2/2]

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

Definition at line 40 of file TGeoVector3.h.

◆ Perp()

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

Definition at line 95 of file TGeoVector3.h.

◆ Perp2()

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

Definition at line 92 of file TGeoVector3.h.

◆ Phi()

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

Definition at line 130 of file TGeoVector3.h.

◆ Set() [1/2]

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

Definition at line 89 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 82 of file TGeoVector3.h.

◆ Theta()

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

Definition at line 133 of file TGeoVector3.h.

◆ Unit()

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

Definition at line 148 of file TGeoVector3.h.

◆ x() [1/2]

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

Definition at line 63 of file TGeoVector3.h.

◆ x() [2/2]

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

Definition at line 67 of file TGeoVector3.h.

◆ y() [1/2]

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

Definition at line 69 of file TGeoVector3.h.

◆ y() [2/2]

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

Definition at line 70 of file TGeoVector3.h.

◆ z() [1/2]

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

Definition at line 72 of file TGeoVector3.h.

◆ z() [2/2]

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

Definition at line 73 of file TGeoVector3.h.

Member Data Documentation

◆ fVec

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

Definition at line 23 of file TGeoVector3.h.

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

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