double[] pos = xrtransport.getInitialPos();
double radius =
Math2.magnitude(Math2.cross(normal,
Math2.minus(center, pos)));
HistogramDouble emittedDistribution =
emittedDistributions.get(xrt);
if (emittedDistribution == null) {
emittedDistribution = emptyDistribution.clone();
emittedDistributions.put(xrt, emittedDistribution);
}
emittedDistribution.add(radius, xrtransport.getIntensity());
HistogramDouble generatedDistribution =
generatedDistributions.get(xrt);
if (generatedDistribution == null) {
generatedDistribution = emptyDistribution.clone();
generatedDistributions.put(xrt, generatedDistribution);
}
generatedDistribution.add(radius,
xrtransport.getGenerated());
}
}
}
break;