Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TGeoVector3.h File Reference
#include <Riostream.h>
#include <TMath.h>

Classes

struct  ROOT::Geom::Vertex_t

Namespaces

namespace  ROOT
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)
Vertex_t ROOT::Geom::operator* (const double lhs, Vertex_t const &rhs)
Vertex_t ROOT::Geom::operator* (const Vertex_t &lhs, const Vertex_t &rhs)
Vertex_t ROOT::Geom::operator* (Vertex_t const &lhs, const double rhs)
Vertex_t ROOT::Geom::operator+ (const double lhs, Vertex_t const &rhs)
Vertex_t ROOT::Geom::operator+ (const Vertex_t &lhs, const Vertex_t &rhs)
Vertex_t ROOT::Geom::operator+ (Vertex_t const &lhs, const double rhs)
Vertex_t ROOT::Geom::operator- (const double lhs, Vertex_t const &rhs)
Vertex_t ROOT::Geom::operator- (const Vertex_t &lhs, const Vertex_t &rhs)
Vertex_t ROOT::Geom::operator- (Vertex_t const &lhs, const double rhs)
Vertex_t ROOT::Geom::operator/ (const double lhs, Vertex_t const &rhs)
Vertex_t ROOT::Geom::operator/ (const Vertex_t &lhs, const Vertex_t &rhs)
Vertex_t ROOT::Geom::operator/ (Vertex_t const &lhs, const double 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)

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; \
}
Tessellated::Vertex_t Vertex_t

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.