12 #include <corsika/framework/geometry/Point.hpp> 21 std::deque<Point> points_;
32 Path(std::deque<Point>
const& points);
85 #include <corsika/detail/framework/geometry/Path.inl> int getNSegments() const
Get the number of steps in the path.
void addToEnd(Point const &point)
Add a new Point to the end of the path.
void removeFromEnd()
Remove a point from the end of the path.
Point getEnd() const
Get the end point of the path.
LengthType getLength() const
Get the total length of the path.
Path(Point const &point)
Create a Path with a given starting Point.
The cascade namespace assembles all objects needed to simulate full particles cascades.
static constexpr quantity zero()
We need a "zero" of each type – for comparisons, to initialize running totals, etc.
auto end()
Return an iterator to the end of the Path.
auto begin()
Return an iterator to the start of the Path.
Point getStart() const
Get the starting point of the path.
Point getPoint(std::size_t const index) const
Get a specific point of the path.
This class represents a (potentially) curved path between two points using N >= 1 straight-line segme...