public class ReparametrisingInterpolation extends Object implements Interpolation
| Constructor and Description |
|---|
ReparametrisingInterpolation(Interpolation baseInterpolation) |
| Modifier and Type | Method and Description |
|---|---|
double |
arcLength(double positionA,
double positionB)
Gets the result of ∫ab|f'(t)| dt.
That means it calculates the arc length (in meters) between positionA and positionB. |
Vector |
get1stDerivative(double position)
Gets the result of f'(position).
|
Interpolation |
getBaseInterpolation() |
Vector |
getPosition(double position)
Gets the result of f(position)
|
int |
getSegment(double position) |
void |
setNodes(List<Node> nodes)
Sets nodes to be used by subsequent calls to
Interpolation.getPosition(double) and the other methods. |
public ReparametrisingInterpolation(Interpolation baseInterpolation)
public void setNodes(List<Node> nodes)
InterpolationInterpolation.getPosition(double) and the other methods.setNodes in interface Interpolationpublic Interpolation getBaseInterpolation()
public Vector getPosition(double position)
InterpolationgetPosition in interface Interpolationpublic Vector get1stDerivative(double position)
Interpolationget1stDerivative in interface Interpolationpublic double arcLength(double positionA,
double positionB)
InterpolationarcLength in interface InterpolationpositionA - lower limitpositionB - upper limitpublic int getSegment(double position)
getSegment in interface InterpolationCopyright © 2010-2014. All Rights Reserved.