public class HeadingInterpolator
Interpolator for specifying the heading for holonomic paths.
Modifier and Type | Field and Description |
---|---|
protected ParametricCurve |
curve
Base parametric curve
|
Constructor and Description |
---|
HeadingInterpolator()
Interpolator for specifying the heading for holonomic paths.
|
Modifier and Type | Method and Description |
---|---|
double |
deriv(double s,
double t)
Returns the heading derivative at the specified
s . |
double |
deriv(double s)
Returns the heading derivative at the specified
s . |
double |
end()
Returns the end heading.
|
double |
endDeriv()
Returns the end heading derivative.
|
double |
endSecondDeriv()
Returns the end heading second derivative.
|
double |
get(double s,
double t)
Returns the heading at the specified
s . |
double |
get(double s)
Returns the heading at the specified
s . |
protected ParametricCurve |
getCurve()
Base parametric curve
|
void |
init(ParametricCurve curve)
Initialize the interpolator with a
curve . |
double |
secondDeriv(double s,
double t)
Returns the heading second derivative at the specified
s . |
double |
secondDeriv(double s)
Returns the heading second derivative at the specified
s . |
protected void |
setCurve(ParametricCurve p)
Base parametric curve
|
double |
start()
Returns the start heading.
|
double |
startDeriv()
Returns the start heading derivative.
|
double |
startSecondDeriv()
Returns the start heading second derivative.
|
@NotNull protected ParametricCurve curve
Base parametric curve
public HeadingInterpolator()
Interpolator for specifying the heading for holonomic paths.
@NotNull protected ParametricCurve getCurve()
Base parametric curve
protected void setCurve(@NotNull ParametricCurve p)
Base parametric curve
public void init(@NotNull ParametricCurve curve)
Initialize the interpolator with a curve
.
curve
- parametric curvecurve
@JvmOverloads public double get(double s, double t)
Returns the heading at the specified s
.
s
@JvmOverloads public double deriv(double s, double t)
Returns the heading derivative at the specified s
.
s
@JvmOverloads public double deriv(double s)
Returns the heading derivative at the specified s
.
s
@JvmOverloads public double secondDeriv(double s, double t)
Returns the heading second derivative at the specified s
.
s
@JvmOverloads public double secondDeriv(double s)
Returns the heading second derivative at the specified s
.
s
public double start()
Returns the start heading.
public double startDeriv()
Returns the start heading derivative.
public double startSecondDeriv()
Returns the start heading second derivative.
public double end()
Returns the end heading.
public double endDeriv()
Returns the end heading derivative.
public double endSecondDeriv()
Returns the end heading second derivative.