core / com.acmerobotics.roadrunner.path / QuinticSplineSegment

QuinticSplineSegment

class QuinticSplineSegment : ParametricCurve

Combination of two quintic polynomials into a 2D quintic spline. See this short paper for some motivation and implementation details.

Parameters

start - start waypoint

end - end waypoint

Types

Waypoint

class Waypoint

Class for representing the end points of interpolated quintic splines.

Constructors

<init>

QuinticSplineSegment(start: Waypoint, end: Waypoint)

Combination of two quintic polynomials into a 2D quintic spline. See this short paper for some motivation and implementation details.

Properties

x

val x: QuinticPolynomial

y

val y: QuinticPolynomial

Functions

length

fun length(): Double

Returns the length of the curve.

toString

fun toString(): String

Inherited Functions

deriv

fun deriv(displacement: Double): Vector2d

Returns the derivative displacement units along the curve.

end

fun end(): Vector2d

Returns the end vector.

endDeriv

fun endDeriv(): Vector2d

Returns the end derivative.

endSecondDeriv

fun endSecondDeriv(): Vector2d

Returns the end second derivative.

endThirdDeriv

fun endThirdDeriv(): Vector2d

Returns the end third derivative.

get

operator fun get(displacement: Double): Vector2d

Returns the vector displacement units along the curve.

secondDeriv

fun secondDeriv(displacement: Double): Vector2d

Returns the second derivative displacement units along the curve.

start

fun start(): Vector2d

Returns the start vector.

startDeriv

fun startDeriv(): Vector2d

Returns the start derivative.

startSecondDeriv

fun startSecondDeriv(): Vector2d

Returns the start second derivative.

startThirdDeriv

fun startThirdDeriv(): Vector2d

Returns the start third derivative.

tangentAngle

fun tangentAngle(displacement: Double): Double

Returns the angle of the tangent line displacement units along the curve.

tangentAngleDeriv

fun tangentAngleDeriv(displacement: Double): Double

Returns the derivative of the tangent angle displacement units along the curve.

tangentAngleSecondDeriv

fun tangentAngleSecondDeriv(displacement: Double): Double

Returns the second derivative of the tangent angle displacement units along the curve.

thirdDeriv

fun thirdDeriv(displacement: Double): Vector2d

Returns the third derivative displacement units along the curve.