IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 0ff8475b authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Maximilian Reininghaus
Browse files

fixed

parent 263021db
No related branches found
No related tags found
1 merge request!99sliding planar atmosphere
......@@ -54,16 +54,14 @@ namespace corsika::environment {
corsika::units::si::GrammageType IntegratedGrammage(
corsika::geometry::Trajectory<corsika::geometry::Line> const& line,
corsika::units::si::LengthType pTo) const override {
feenableexcept(FE_INVALID);
auto const axis = (Base::fP0 - line.GetR0()).normalized();
auto const axis = (line.GetR0() - Base::fP0).normalized();
return Base::IntegratedGrammage(line, pTo, axis);
}
corsika::units::si::LengthType ArclengthFromGrammage(
corsika::geometry::Trajectory<corsika::geometry::Line> const& line,
corsika::units::si::GrammageType pGrammage) const override {
feenableexcept(FE_INVALID);
auto const axis = (Base::fP0 - line.GetR0()).normalized();
auto const axis = (line.GetR0() - Base::fP0).normalized();
return Base::ArclengthFromGrammage(line, pGrammage, axis);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment