Package org.opentrafficsim.core.geometry
Interface ContinuousLine.ContinuousDoubleFunction
- All Known Implementing Classes:
FractionalLengthData
- Enclosing interface:
- ContinuousLine
Temporary function implementation with
getDerivative()
and getKnots()
method.-
Method Summary
Modifier and TypeMethodDescriptiondouble
getDerivative
(double fractionalLength) Returns the derivative of the data with respect to fractional length.double[]
getKnots()
Returns knots in the function.
-
Method Details
-
getDerivative
double getDerivative(double fractionalLength) Returns the derivative of the data with respect to fractional length.- Parameters:
fractionalLength
- fractional length, may be outside range [0 ... 1]- Returns:
- derivative of the data with respect to fractional length
-
getKnots
double[] getKnots()Returns knots in the function.- Returns:
- knots in the function
-