SplineInterpolator

class SplineInterpolator @JvmOverloads constructor(startHeading: Angle, endHeading: Angle, startHeadingDeriv: Angle? = null, startHeadingSecondDeriv: Angle? = null, endHeadingDeriv: Angle? = null, endHeadingSecondDeriv: Angle? = null) : HeadingInterpolator

Spline heading interpolator for transitioning smoothly between headings without violating continuity (and hence allowing for integration into longer profiles).

Parameters

startHeading

start heading

endHeading

end heading

startHeadingDeriv

start heading deriv (advanced)

startHeadingSecondDeriv

start heading second deriv (advanced)

endHeadingDeriv

start heading deriv (advanced)

endHeadingSecondDeriv

start heading second deriv (advanced)

Constructors

Link copied to clipboard
constructor(startHeading: Angle, endHeading: Angle, startHeadingDeriv: Angle? = null, startHeadingSecondDeriv: Angle? = null, endHeadingDeriv: Angle? = null, endHeadingSecondDeriv: Angle? = null)

Functions

Link copied to clipboard
open override fun init(curve: ParametricCurve)

Initialize the interpolator with a curve.