public class HeadingInterpolator
Interpolator for specifying the heading for holonomic paths.
| Modifier and Type | Field and Description |
|---|---|
ParametricCurve |
parametricCurve |
| Constructor and Description |
|---|
HeadingInterpolator()
Interpolator for specifying the heading for holonomic paths.
|
| Modifier and Type | Method and Description |
|---|---|
double |
deriv(double displacement)
Returns the heading derivative at the specified displacement.
|
double |
end()
Returns the end heading.
|
double |
endDeriv()
Returns the end heading derivative.
|
double |
endSecondDeriv()
Returns the end heading second derivative.
|
double |
get(double displacement)
Returns the heading at the specified displacement.
|
ParametricCurve |
getParametricCurve() |
void |
init(ParametricCurve parametricCurve)
Initialize the interpolator with a parametricCurve.
|
boolean |
respectsDerivativeContinuity()
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
class TangentInterpolator. |
double |
secondDeriv(double displacement)
Returns the heading second derivative at the specified displacement.
|
void |
setParametricCurve(ParametricCurve p) |
double |
start()
Returns the start heading.
|
double |
startDeriv()
Returns the start heading derivative.
|
double |
startSecondDeriv()
Returns the start heading second derivative.
|
public ParametricCurve parametricCurve
public HeadingInterpolator()
Interpolator for specifying the heading for holonomic paths.
public ParametricCurve getParametricCurve()
public void setParametricCurve(ParametricCurve p)
public void init(ParametricCurve parametricCurve)
Initialize the interpolator with a parametricCurve.
parametricCurve - parametric curvepublic boolean respectsDerivativeContinuity()
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 class TangentInterpolator.
class TangentInterpolatorclass TangentInterpolatorpublic double get(double displacement)
Returns the heading at the specified displacement.
public double deriv(double displacement)
Returns the heading derivative at the specified displacement.
public double secondDeriv(double displacement)
Returns the heading second derivative at the specified displacement.
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.