Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Line.cc,v 2.6 1998/12/15 10:33:55 broglia Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4Line.cc,v 1.3 1999/05/20 09:35:35 sgiani Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
#include "G4Line.hh"
|
||||
|
||||
@@ -17,15 +17,22 @@ G4Curve* G4Line::Project(const G4Transform3D& tr)
|
||||
{
|
||||
G4Vector3D newDir= tr*dir;
|
||||
|
||||
if (abs(newDir.x())+abs(newDir.y()) < kCarTolerance)
|
||||
return 0;
|
||||
if (abs(newDir.x())+abs(newDir.y()) < kCarTolerance){
|
||||
|
||||
newDir.setX(kCarTolerance);
|
||||
newDir.setY(kCarTolerance);
|
||||
};
|
||||
|
||||
G4Point3D newPnt= tr*pnt;
|
||||
newDir.setZ(0);
|
||||
newPnt.setZ(0);
|
||||
|
||||
G4Line* r= new G4Line();
|
||||
r->Init(newDir, newPnt);
|
||||
|
||||
// L. Broglia : terrible mistake !!!!
|
||||
//r->Init(newDir, newPnt);
|
||||
r->Init(newPnt, newDir);
|
||||
|
||||
r->SetBounds(GetPStart(), GetPEnd());
|
||||
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user