Import Geant4 9.2.0 source tree
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Line.icc,v 1.9 2006/06/29 18:39:46 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
// $Id: G4Line.icc,v 1.10 2008/03/13 14:18:57 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
// GEANT 4 inline definitions file
|
||||
@@ -165,11 +165,13 @@ G4int G4Line::IntersectRay2D(const G4Ray& ray)
|
||||
|
||||
// test the validity of the results
|
||||
if(t>=0 && u>=0 && u<=1)
|
||||
{
|
||||
// test if the point is on the line
|
||||
if( t==0 || u==0 )
|
||||
return 999;
|
||||
else
|
||||
nbinter = 1;
|
||||
nbinter = 1;
|
||||
}
|
||||
}
|
||||
|
||||
return nbinter;
|
||||
|
||||
Reference in New Issue
Block a user