Interface Interpolation
- All Known Implementing Classes:
KochanekBartelsInterpolation
,LinearInterpolation
,ReparametrisingInterpolation
public interface Interpolation
Represents an arbitrary function in ℝ → ℝ3.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
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.get1stDerivative
(double position) Gets the result of f'(position).getPosition
(double position) Gets the result of f(position).int
getSegment
(double position) Get the segment position.void
Sets nodes to be used by subsequent calls togetPosition(double)
and the other methods.
-
Method Details
-
setNodes
Sets nodes to be used by subsequent calls togetPosition(double)
and the other methods.- Parameters:
nodes
- the nodes
-
getPosition
Gets the result of f(position).- Parameters:
position
- the position to interpolate- Returns:
- the result
-
get1stDerivative
Gets the result of f'(position).- Parameters:
position
- the position to interpolate- Returns:
- the result
-
arcLength
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.- Parameters:
positionA
- lower limitpositionB
- upper limit- Returns:
- the arc length
-
getSegment
int getSegment(double position) Get the segment position.- Parameters:
position
- the position- Returns:
- the segment position
-