|
CORSIKA8
0.0.0
The framework to simulate particle cascades for astroparticle physics
|
This class represents a (potentially) curved path between two points using N >= 1 straight-line segments. More...
#include <Path.hpp>
Public Member Functions | |
| Path (Point const &point) | |
| Create a Path with a given starting Point. | |
| Path (std::deque< Point > const &points) | |
| Initialize a Path from an existing collection of Points. | |
| 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. | |
| LengthType | getLength () const |
| Get the total length of the path. | |
| Point | getStart () const |
| Get the starting point of the path. | |
| Point | getEnd () const |
| Get the end point of the path. | |
| Point | getPoint (std::size_t const index) const |
| Get a specific point of the path. | |
| auto | begin () |
| Return an iterator to the start of the Path. | |
| auto | end () |
| Return an iterator to the end of the Path. | |
| int | getNSegments () const |
| Get the number of steps in the path. More... | |
This class represents a (potentially) curved path between two points using N >= 1 straight-line segments.
|
inline |
Get the number of steps in the path.
This is one less than the number of points that defines the path.