Import Geant4 7.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 12:11:21 +02:00
parent 516dbf1a58
commit d93e1e39a9
5384 changed files with 125662 additions and 82444 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenInventorTransform3D.cc,v 1.6 2004/11/22 14:20:19 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
// $Id: G4OpenInventorTransform3D.cc,v 1.7 2005/05/25 08:16:06 gbarrand Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// jck 17 Dec 1996
@@ -39,22 +39,24 @@
G4OpenInventorTransform3D::G4OpenInventorTransform3D (const G4Transform3D &t)
: G4Transform3D (t) {
m[0] = xx;
m[1] = yx;
m[2] = zx;
#define elem(i,j) ((float)t(i,j))
m[0] = elem(0,0); //xx
m[1] = elem(1,0); //yx
m[2] = elem(2,0); //zx
m[3] = 0;
m[4] = xy;
m[5] = yy;
m[6] = zy;
m[4] = elem(0,1); //xy
m[5] = elem(1,1); //yy
m[6] = elem(2,1); //zy
m[7] = 0;
m[8] = xz;
m[9] = yz;
m[10] = zz;
m[8] = elem(0,2); //xz
m[9] = elem(1,2); //yz
m[10] = elem(2,2); //zz
m[11] = 0;
m[12] = dx;
m[13] = dy;
m[14] = dz;
m[12] = elem(0,3); //dx
m[13] = elem(1,3); //dy
m[14] = elem(2,3); //dz
m[15] = 1;
#undef elem
}
SbMatrix* G4OpenInventorTransform3D::GetSbMatrix () const {