#include <VolumeIntersectionIntervals.h>
Public Member Functions | |
double | operator() (double &Length, const ILVolume::Intersection &intersection) const |
Definition at line 159 of file VolumeIntersectionIntervals.h.
double VolumeIntersectionIntervals::AccumulateIntersections::operator() | ( | double & | Length, | |
const ILVolume::Intersection & | intersection | |||
) | const [inline] |
Definition at line 164 of file VolumeIntersectionIntervals.h.
00165 { 00166 const Material* mat = intersection.second; 00167 const ILVolume::Interval& Int = intersection.first; 00168 return 00169 ( Length += ( ( 0 == mat ) ? 0 : 00170 (Int.second-Int.first) / mat->radiationLength() ) ) ; 00171 }