Spline.hh
Go to the documentation of this file.
bool UpdatePoint(const unsigned int _index, const Vector3d &_p, const Vector3d &_t)
Updates a single control point in the spline, along with its tangent.
void AddPoint(const Vector3d &_p)
Adds a single control point to the end of the spline.
Vector3d MthDerivative(const unsigned int _index, const unsigned int _mth) const
Gets the mth derivative for one of the control points of the spline.
Vector3d InterpolateTangent(const double _t) const
Interpolates a tangent on the spline at parameter value _t.
void AddPoint(const Vector3d &_p, const Vector3d &_t)
Adds a single control point to the end of the spline with fixed tangent.
Vector3d InterpolateTangent(const unsigned int _fromIndex, const double _t) const
Interpolates the tangent on a segment of the spline at parameter value _t.
double ArcLength(const unsigned int _index, const double _t) const
Gets a spline segment arc length.
Vector3d Tangent(const unsigned int _index) const
Gets the tangent value for one of the control points of the spline.
void AutoCalculate(bool _autoCalc)
Tells the spline whether it should automatically calculate tangents on demand as points are added.
void RecalcTangents()
Recalculates the tangents associated with this spline.
Vector3d InterpolateMthDerivative(const unsigned int _mth, const double _1) const
Interpolates the mth derivative of the spline at parameter value _t.
Vector3d Interpolate(const unsigned int _fromIndex, const double _t) const
Interpolates a point on a segment of the spline at parameter value _t.
Vector3d Point(const unsigned int _index) const
Gets the value for one of the control points of the spline.
Vector3d Interpolate(const double _t) const
Interpolates a point on the spline at parameter value _t.
Vector3d InterpolateMthDerivative(const unsigned int _fromIndex, const unsigned int _mth, const double _s) const
Interpolates the mth derivative of a segment of the spline at parameter value _t.
bool UpdatePoint(const unsigned int _index, const Vector3d &_p)
Updates a single control point value in the spline, keeping its tangent.
size_t PointCount() const
Gets the number of control points in the spline.
double ArcLength(const double _t) const
Gets spline arc length up to a given parameter value _t.
The Vector3 class represents the generic vector containing 3 elements. Since it's commonly used to ke...
Definition: Vector3.hh:42
Definition: Angle.hh:43