class NthDegreePolynomial
Nth-degree polynomial interpolated according to the provided derivatives. Note that this implementation is less performant than QuinticPolynomial as it uses general matrix operations for derivative computations.
start
- start derivatives starting with the 0th derivative
end
- end derivatives starting with the 0th derivative
NthDegreePolynomial(start: List<Double>, end: List<Double>)
Nth-degree polynomial interpolated according to the provided derivatives. Note that this implementation is less performant than QuinticPolynomial as it uses general matrix operations for derivative computations. |
fun deriv(t: Double): Double
Returns the derivative of the polynomial at t. |
|
operator fun get(t: Double): Double
Returns the value of the polynomial at t. |
|
fun secondDeriv(t: Double): Double
Returns the second derivative of the polynomial at t. |
|
fun thirdDeriv(t: Double): Double
Returns the third derivative of the polynomial at t. |