core / com.acmerobotics.roadrunner.path / QuinticPolynomial

QuinticPolynomial

class QuinticPolynomial (source)

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>

Quintic polynomial interpolated according to the provided derivatives.

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

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

Returns the derivative of the polynomial at t.

fun deriv(t: Double): Double

get

Returns the value of the polynomial at t.

operator fun get(t: Double): Double

secondDeriv

Returns the second derivative of the polynomial at t.

fun secondDeriv(t: Double): Double

thirdDeriv

Returns the third derivative of the polynomial at t.

fun thirdDeriv(t: Double): Double

toString

fun toString(): String