core / com.acmerobotics.roadrunner.path / QuinticPolynomial

QuinticPolynomial

class QuinticPolynomial

Quintic polynomial interpolated according to the provided derivatives.

Parameters

start - start value

startDeriv - start derivative

startSecondDeriv - start second derivative

end - end value

endDeriv - end derivative

endSecondDeriv - end second derivative

Constructors

<init>

QuinticPolynomial(start: Double, startDeriv: Double, startSecondDeriv: Double, end: Double, endDeriv: Double, endSecondDeriv: Double)

Quintic polynomial interpolated according to the provided derivatives.

Properties

a

val a: Double

b

val b: Double

c

val c: Double

d

val d: Double

e

val e: Double

f

val f: Double

Functions

deriv

fun deriv(t: Double): Double

Returns the derivative of the polynomial at t.

get

operator fun get(t: Double): Double

Returns the value of the polynomial at t.

secondDeriv

fun secondDeriv(t: Double): Double

Returns the second derivative of the polynomial at t.

thirdDeriv

fun thirdDeriv(t: Double): Double

Returns the third derivative of the polynomial at t.

toString

fun toString(): String