public class WiggleInterpolator
extends 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.
public WiggleInterpolator(double amplitude, double desiredPeriod, @NotNull HeadingInterpolator baseInterpolator)
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.
amplitude
- amplitude of the wiggle oscillationsdesiredPeriod
- period fo the wiggle oscillationsbaseInterpolator
- base interpolator to add oscillations to (e.g., oscillations relative to the tangent)public void init(@NotNull ParametricCurve curve)
Initialize the interpolator with a curve
.
curve
- parametric curvecurve
public double internalGet$module(double s, double t)
public double internalDeriv$module(double s, double t)
public double internalSecondDeriv$module(double s, double t)