Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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

namespace  ROOT
 tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tbb::task_arena without forward declaring tbb::interface7
 
namespace  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 169 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 43 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.