#include "G4ChordFinderSaf.hh"
#include <iomanip>
Go to the source code of this file.
Functions | |
G4double | CalculatePointSafety (G4ThreeVector safetyOrigin, G4double safetyRadius, G4ThreeVector point) |
G4bool | CalculatePointInside (G4ThreeVector safetyOrigin, G4double safetyRadius, G4ThreeVector point) |
G4bool CalculatePointInside | ( | G4ThreeVector | safetyOrigin, | |
G4double | safetyRadius, | |||
G4ThreeVector | point | |||
) |
Definition at line 109 of file G4ChordFinderSaf.cc.
Referenced by G4ChordFinderSaf::FindNextChord().
00112 { 00113 G4ThreeVector OriginShift = point - safetyOrigin ; 00114 return ( OriginShift.mag2() < safetyRadius*safetyRadius ); 00115 }
G4double CalculatePointSafety | ( | G4ThreeVector | safetyOrigin, | |
G4double | safetyRadius, | |||
G4ThreeVector | point | |||
) |
Definition at line 92 of file G4ChordFinderSaf.cc.
References sqr().
Referenced by G4ChordFinderSaf::FindNextChord().
00095 { 00096 G4double pointSafety= 0.0; 00097 00098 G4ThreeVector OriginShift = point - safetyOrigin ; 00099 G4double MagSqShift = OriginShift.mag2() ; 00100 if( MagSqShift < sqr(safetyRadius) ){ 00101 pointSafety = safetyRadius - std::sqrt(MagSqShift) ; 00102 } 00103 00104 return pointSafety; 00105 }