public interface Interpolation
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. |
Vector3 |
get1stDerivative(double position)
Gets the result of f'(position).
|
Vector3 |
getPosition(double position)
Gets the result of f(position).
|
int |
getSegment(double position)
Get the segment position.
|
void |
setNodes(java.util.List<Node> nodes)
Sets nodes to be used by subsequent calls to
getPosition(double) and the other methods. |
void setNodes(java.util.List<Node> nodes)
getPosition(double)
and the other methods.nodes
- the nodesVector3 getPosition(double position)
position
- the position to interpolateVector3 get1stDerivative(double position)
position
- the position to interpolatedouble arcLength(double positionA, double positionB)
positionA
- lower limitpositionB
- upper limitint getSegment(double position)
position
- the position