28 namespace OpenSkyNet {
35 std::vector<Math::Point<> > _points;
37 std::vector<float> _dist;
42 inline std::vector<Math::Point<> >&
getPoints() {
return _points; }
43 inline const std::vector<Math::Point<> >&
getPoints()
const {
return _points; }
46 _points.push_back(aPoint_);
48 _dist.push_back((aPoint_ - _points[_numPoints-1]).
getLength());
49 _totalDist += _dist[_numPoints-1];
53 return (_numPoints - 1);
61 return (_numPoints - 1);
83 _points[i] = _points[i] + p_;
void clear()
Definition: MPath.h:64
Math::Point travelPercentOfPoints(const float &percent_) const
Definition: MPath.cpp:66
Utils::uint getNumPoints() const
Definition: MPath.h:41
void translate(const Math::Point<> &p_)
Definition: MPath.h:81
Utils::uint addAPoint(const Math::Point<> &aPoint_)
Definition: MPath.h:45
void calcNaturalCubicSpline(float minDistanceBetweenPoints_=1.0, Utils::uint maxTotalPoints_=0, float tension_=0.0f)
Definition: MPath.cpp:12
float getAdditiveFromSpeed(float speed_) const
Definition: MPath.h:114
void calcDistances()
Definition: MPath.cpp:54
const std::vector< Math::Point<> > & getPoints() const
Definition: MPath.h:43
bool isPathChanged()
Definition: MPath.h:73
unsigned int uint
Definition: UTypes.h:39
T getLength(const Point< T > &lhs_, const Point< U > &rhs_)
Definition: MPoint.h:290
Path()
Definition: MPath.cpp:10
Math::Point travelPercentOfDist(const float &percent_) const
Definition: MPath.cpp:85
std::vector< Math::Point<> > & getPoints()
Definition: MPath.h:42
Utils::uint addAPoint(float x_, float y_, float z_)
Definition: MPath.h:56
float getTotalDist() const
Definition: MPath.h:99
Utils::uint appendPath(const Path &path_)
Definition: MPath.h:58