From f8a8b21a2fcc038f5eee229a70f842619cbde53c Mon Sep 17 00:00:00 2001 From: Maximilian Reininghaus <maximilian.reininghaus@kit.edu> Date: Fri, 3 Jul 2020 15:31:25 +0200 Subject: [PATCH] getters for start and direction of ShowerAxis --- Environment/ShowerAxis.cc | 6 ++++++ Environment/ShowerAxis.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/Environment/ShowerAxis.cc b/Environment/ShowerAxis.cc index f67cfb42f..61412c48c 100644 --- a/Environment/ShowerAxis.cc +++ b/Environment/ShowerAxis.cc @@ -47,3 +47,9 @@ GrammageType ShowerAxis::projectedX(geometry::Point const& p) const { auto const projectedLength = (p - pointStart_).dot(axis_normalized_); return X(projectedLength); } + +geometry::Vector<units::si::dimensionless_d> const& ShowerAxis::GetDirection() const { + return axis_normalized_; +} + +geometry::Point const& ShowerAxis::GetStart() const { return pointStart_; } diff --git a/Environment/ShowerAxis.h b/Environment/ShowerAxis.h index 3d31a0c7c..3e713dd46 100644 --- a/Environment/ShowerAxis.h +++ b/Environment/ShowerAxis.h @@ -79,6 +79,10 @@ namespace corsika::environment { units::si::GrammageType X(units::si::LengthType) const; + geometry::Vector<units::si::dimensionless_d> const& GetDirection() const; + + geometry::Point const& GetStart() const; + private: geometry::Point const pointStart_; geometry::Vector<units::si::length_d> const length_; -- GitLab