Cubic interpolator for splines defined between each pair of control points.
More...
#include <SplinePrivate.hh>
Cubic interpolator for splines defined between each pair of control points.
§ IntervalCubicSpline()
ignition::math::IntervalCubicSpline::IntervalCubicSpline |
( |
| ) |
|
§ ArcLength() [1/2]
double ignition::math::IntervalCubicSpline::ArcLength |
( |
| ) |
const |
|
inline |
Gets curve arc length.
- Returns
- the arc length
§ ArcLength() [2/2]
double ignition::math::IntervalCubicSpline::ArcLength |
( |
const double |
_t | ) |
const |
Gets curve arc length up to a given point _t
.
- Parameters
-
[in] | _t | parameter value (range 0 to 1). |
- Returns
- the arc length up to
_t
or INF on error.
§ EndPoint()
const ControlPoint& ignition::math::IntervalCubicSpline::EndPoint |
( |
| ) |
const |
|
inline |
Gets the end control point.
- Returns
- the end control point.
§ InterpolateMthDerivative()
Vector3d ignition::math::IntervalCubicSpline::InterpolateMthDerivative |
( |
const unsigned int |
_mth, |
|
|
const double |
_t |
|
) |
| const |
Interpolates the curve mth derivative at parameter value _t
.
- Parameters
-
[in] | _mth | order of curve derivative to interpolate. |
[in] | _t | parameter value (range 0 to 1). |
- Returns
- the interpolated mth derivative, or [INF, INF, INF] on error. Use Vector3d::IsFinite() to check for an error.
§ SetPoints()
void ignition::math::IntervalCubicSpline::SetPoints |
( |
const ControlPoint & |
_startPoint, |
|
|
const ControlPoint & |
_endPoint |
|
) |
| |
Sets both control points.
- Parameters
-
[in] | _startPoint | start control point. |
[in] | _endPoint | end control point. |
§ StartPoint()
const ControlPoint& ignition::math::IntervalCubicSpline::StartPoint |
( |
| ) |
const |
|
inline |
Gets the start control point.
- Returns
- the start control point.
The documentation for this class was generated from the following file: