class WiggleInterpolator : HeadingInterpolator
Heading interpolator that wraps another interpolator and adds sinusoidal oscillations ("wiggles") while preserving continuity. More specifically, the wiggle function is composed of a sine wave with a quintic spline on either end.
WiggleInterpolator(amplitude: Double, desiredPeriod: Double, baseInterpolator: HeadingInterpolator = TangentInterpolator())
Heading interpolator that wraps another interpolator and adds sinusoidal oscillations ("wiggles") while preserving continuity. More specifically, the wiggle function is composed of a sine wave with a quintic spline on either end. |
lateinit var parametricCurve: ParametricCurve |
fun deriv(displacement: Double): Double
Returns the heading derivative at the specified displacement. |
|
operator fun get(displacement: Double): Double
Returns the heading at the specified displacement. |
|
fun init(parametricCurve: ParametricCurve): Unit
Initialize the interpolator with a parametricCurve. |
|
fun respectsDerivativeContinuity(): Boolean
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 TangentInterpolator. |
|
fun secondDeriv(displacement: Double): Double
Returns the heading second derivative at the specified displacement. |
fun end(): Double
Returns the end heading. |
|
fun endDeriv(): Double
Returns the end heading derivative. |
|
fun endSecondDeriv(): Double
Returns the end heading second derivative. |
|
fun start(): Double
Returns the start heading. |
|
fun startDeriv(): Double
Returns the start heading derivative. |
|
fun startSecondDeriv(): Double
Returns the start heading second derivative. |