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.
curve
Constructor and Description |
---|
WiggleInterpolator(double amplitude,
double desiredPeriod,
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.
|
Modifier and Type | Method and Description |
---|---|
void |
init(ParametricCurve curve)
Initialize the interpolator with a
curve . |
double |
internalDeriv$module(double s,
double t) |
double |
internalGet$module(double s,
double t) |
double |
internalSecondDeriv$module(double s,
double t) |
deriv, deriv, end, endDeriv, endSecondDeriv, get, get, getCurve, init, secondDeriv, secondDeriv, setCurve, start, startDeriv, startSecondDeriv
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)