public class SplineInterpolator
extends HeadingInterpolator
Spline heading interpolator for transitioning smoothly between headings without violating continuity (and hence allowing for integration into longer profiles).
parametricCurve| Constructor and Description |
|---|
SplineInterpolator(double startHeading,
double endHeading)
Spline heading interpolator for transitioning smoothly between headings without violating continuity (and hence
allowing for integration into longer profiles).
|
| Modifier and Type | Method and Description |
|---|---|
double |
deriv(double displacement)
Returns the heading derivative at the specified displacement.
|
double |
get(double displacement)
Returns the heading at the specified displacement.
|
void |
init(ParametricCurve parametricCurve)
Initialize the interpolator with a parametricCurve.
|
boolean |
respectsDerivativeContinuity()
Returns true if the heading interpolator respects derivative continuity at path segment endpoints. That is,
the start and end heading derivatives match those of the
class TangentInterpolator. |
double |
secondDeriv(double displacement)
Returns the heading second derivative at the specified displacement.
|
deriv, end, endDeriv, endSecondDeriv, get, getParametricCurve, init, respectsDerivativeContinuity, secondDeriv, setParametricCurve, start, startDeriv, startSecondDerivpublic SplineInterpolator(double startHeading,
double endHeading)
Spline heading interpolator for transitioning smoothly between headings without violating continuity (and hence allowing for integration into longer profiles).
startHeading - start headingendHeading - end headingstartHeading - start headingendHeading - end headingpublic void init(ParametricCurve parametricCurve)
Initialize the interpolator with a parametricCurve.
parametricCurve - parametric curvepublic boolean respectsDerivativeContinuity()
Returns true if the heading interpolator respects derivative continuity at path segment endpoints. That is,
the start and end heading derivatives match those of the class TangentInterpolator.
class TangentInterpolatorclass TangentInterpolatorpublic double get(double displacement)
Returns the heading at the specified displacement.
public double deriv(double displacement)
Returns the heading derivative at the specified displacement.
public double secondDeriv(double displacement)
Returns the heading second derivative at the specified displacement.