Newer
Older
#ifndef _include_LINETRAJECTORY_H
#define _include_LINETRAJECTORY_H
#include <corsika/Point.h>
#include <corsika/Vector.h>
class LineTrajectory // TODO: inherit from Trajectory
{
using SpeedVec = Vector<Speed::dimension_type>;
LineTrajectory(Point const& pR0, SpeedVec const& pV0)
: r0(r0)
, v0(pV0) {}
auto GetPosition(Time t) const { return r0 + v0 * t; }
};
} // end namesapce