g4tools  5.4.0
Classes | Typedefs | Functions
tools::hep Namespace Reference

Classes

class  polyhedron
 
class  polyhedron_arb8
 
class  polyhedron_box
 
class  polyhedron_cone
 
class  polyhedron_cons
 
class  polyhedron_hype
 
class  polyhedron_para
 
class  polyhedron_pcon
 
class  polyhedron_pgon
 
class  polyhedron_sphere
 
class  polyhedron_torus
 
class  polyhedron_trap
 
class  polyhedron_trd1
 
class  polyhedron_trd2
 
class  polyhedron_tube
 
class  polyhedron_tubs
 
class  polyhedron_xtru
 
class  polyhedronProcessor
 
class  SbFacet
 
class  sf_polyhedron
 

Typedefs

typedef vec3d HVPoint3D
 
typedef HVPoint3D HVNormal3D
 
typedef HVPoint3D HVVector3D
 

Functions

int Sb_iabs (int a)
 
template<class MATRIX >
void tsf_polyhedron (polyhedron &a_ph, const MATRIX &a_matrix)
 

Typedef Documentation

◆ HVNormal3D

Definition at line 38 of file polyhedron.

◆ HVPoint3D

Definition at line 37 of file polyhedron.

◆ HVVector3D

Definition at line 39 of file polyhedron.

Function Documentation

◆ Sb_iabs()

int tools::hep::Sb_iabs ( int  a)
inline

Definition at line 441 of file polyhedron.

441  {
442  return a < 0 ? -a : a;
443 }

◆ tsf_polyhedron()

template<class MATRIX >
void tools::hep::tsf_polyhedron ( polyhedron a_ph,
const MATRIX &  a_matrix 
)
inline

Definition at line 818 of file polyhedron.

818  {
819  typedef typename MATRIX::elem_t T;
820  int nvert = a_ph.GetNoVertices();
821  hep::HVPoint3D* pV = a_ph.GetPV();
822  if (nvert > 0) {
823  T x,y,z;
824  for (int i=1; i<=nvert; i++) {
825  hep::HVPoint3D& p = pV[i];
826  x = T(p.x());
827  y = T(p.y());
828  z = T(p.z());
829  a_matrix.mul_3(x,y,z);
830  p.set_value(x,y,z);
831  }
832  }
833 }
tools::hep::HVPoint3D
vec3d HVPoint3D
Definition: polyhedron:37