Logo ROOT  
Reference Guide
TGeoVector3.h File Reference
#include <Riostream.h>
#include <TMath.h>
Include dependency graph for TGeoVector3.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  ROOT::Geom::Vertex_t
 

Namespaces

 ROOT
 VSD Structures.
 
 ROOT::Geom
 

Macros

#define Vertex_t_BINARY_OP(OPERATOR, INPLACE)
 
#define Vertex_t_INPLACE_BINARY_OP(OPERATOR)
 

Functions

bool ROOT::Geom::operator!= (Vertex_t const &lhs, Vertex_t const &rhs)
 
std::ostream & operator<< (std::ostream &os, ROOT::Geom::Vertex_t const &vec)
 
bool ROOT::Geom::operator== (Vertex_t const &lhs, Vertex_t const &rhs)
 
 ROOT::Geom::Vertex_t_BINARY_OP (+,+=) Vertex_t_BINARY_OP(-
 

Macro Definition Documentation

◆ Vertex_t_BINARY_OP

#define Vertex_t_BINARY_OP (   OPERATOR,
  INPLACE 
)
Value:
inline Vertex_t operator OPERATOR(const Vertex_t &lhs, const Vertex_t &rhs) \
{ \
Vertex_t result(lhs); \
result INPLACE rhs; \
return result; \
} \
inline Vertex_t operator OPERATOR(Vertex_t const &lhs, const double rhs) \
{ \
Vertex_t result(lhs); \
result INPLACE rhs; \
return result; \
} \
inline Vertex_t operator OPERATOR(const double lhs, Vertex_t const &rhs) \
{ \
Vertex_t result(lhs); \
result INPLACE rhs; \
return result; \
}

Definition at line 181 of file TGeoVector3.h.

◆ Vertex_t_INPLACE_BINARY_OP

#define Vertex_t_INPLACE_BINARY_OP (   OPERATOR)
Value:
inline Vertex_t &operator OPERATOR(const Vertex_t &other) \
{ \
fVec[0] OPERATOR other.fVec[0]; \
fVec[1] OPERATOR other.fVec[1]; \
fVec[2] OPERATOR other.fVec[2]; \
return *this; \
} \
inline Vertex_t &operator OPERATOR(const double &scalar) \
{ \
fVec[0] OPERATOR scalar; \
fVec[1] OPERATOR scalar; \
fVec[2] OPERATOR scalar; \
return *this; \
}

Definition at line 61 of file TGeoVector3.h.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
ROOT::Geom::Vertex_t const &  vec 
)

Definition at line 19 of file TGeoVector3.cxx.

ROOT::Geom::Vertex_t
Definition: TGeoVector3.h:33
ROOT::Geom::Vertex_t::fVec
double fVec[3]
Definition: TGeoVector3.h:40