14 #ifndef BASICTOOL_GEOTRAJECTORY_H 15 #define BASICTOOL_GEOTRAJECTORY_H 36 Trajectory(
size_t npoints=0,
size_t ndimension=0);
45 Trajectory(
const std::vector<geoalgo::Point_t> &obj);
50 double Length(
size_t start_step=0,
size_t end_step=0)
const;
88 { o <<
"Trajectory with " << a.size() <<
" points " <<
std::endl;
89 for(
auto const&
p : a )
void push_back(const T &obj)
push_back template
void compat(const Point_t &obj) const
Dimensionality check function w/ Trajectory.
virtual ~Trajectory()
Default dtor.
Trajectory & operator+=(const Point_t &rhs)
Trajectory(size_t npoints=0, size_t ndimension=0)
Default ctor to specify # points and dimension of each point.
void push_back(const Point_t &obj)
push_back overrie w/ dimensionality check
Class def header for a class Point and Vector.
friend std::ostream & operator<<(std::ostream &o, Trajectory const &a)
Streamer.
double Length(size_t start_step=0, size_t end_step=0) const
The summed-length along all trajectory points.
Vector Dir(size_t i=0) const
The direction at a specified trajectory point.
bool IsLonger(double) const
Check if the trajectory is longer than specified value.
Vector _Dir_(size_t i) const
Returns a direction vector at a specified trajectory point w/o size check.
QTextStream & endl(QTextStream &s)