- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/solids/specific/src/G4GenericTrap.cc
r1316 r1337 25 25 // 26 26 // 27 // $Id: G4GenericTrap.cc,v 1.1 2 2010/06/11 09:42:28 gcosmoExp $28 // GEANT4 tag $Name: geant4-09-04-beta- cand-01 $27 // $Id: G4GenericTrap.cc,v 1.13 2010/06/25 09:41:07 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // … … 206 206 if(count==4) 207 207 { 208 if ( ( fabs(p.x()-poly[0].x())+fabs(p.y()-poly[0].y())) > halfCarTolerance )208 if ( (std::fabs(p.x()-poly[0].x())+std::fabs(p.y()-poly[0].y())) > halfCarTolerance ) 209 209 { 210 210 in=kOutside; … … 316 316 if ( (p2-p0).mag2() < kCarTolerance ) 317 317 { 318 if ( fabs(p.z()+fDz) > kCarTolerance )318 if ( std::fabs(p.z()+fDz) > kCarTolerance ) 319 319 { 320 320 p2=G4ThreeVector(fVertices[(s+1)%4].x(),fVertices[(s+1)%4].y(),-fDz); … … 430 430 if ( (p2-p0).mag2() < kCarTolerance ) 431 431 { 432 if ( fabs(p.z()+fDz) > halfCarTolerance )432 if ( std::fabs(p.z()+fDz) > halfCarTolerance ) 433 433 { 434 434 p2=G4ThreeVector(fVertices[j].x(),fVertices[j].y(),-fDz); … … 756 756 G4double zac=0; 757 757 758 if ( ( fabs(xa-xc)+fabs(ya-yc)) < halfCarTolerance )758 if ( (std::fabs(xa-xc)+std::fabs(ya-yc)) < halfCarTolerance ) 759 759 { 760 760 xc=fVertices[j+4].x(); … … 765 765 //Line case 766 766 // 767 if ( ( fabs(xb-xc)+fabs(yb-yc)) < halfCarTolerance )767 if ( (std::fabs(xb-xc)+std::fabs(yb-yc)) < halfCarTolerance ) 768 768 { 769 769 return kInfinity; … … 850 850 yd=fVertices[4+j].y(); 851 851 852 if ( (( fabs(xb-xd)+fabs(yb-yd))<halfCarTolerance)853 || (( fabs(xa-xc)+fabs(ya-yc))<halfCarTolerance) )852 if ( ((std::fabs(xb-xd)+std::fabs(yb-yd))<halfCarTolerance) 853 || ((std::fabs(xa-xc)+std::fabs(ya-yc))<halfCarTolerance) ) 854 854 { 855 855 G4double s=DistToTriangle(p,v,ipl) ;
Note: See TracChangeset
for help on using the changeset viewer.