core / com.acmerobotics.roadrunner.path / QuinticSpline / Knot

Knot

class Knot (source)

Class for representing the end points of interpolated quintic splines.

Parameters

x - x position

y - y position

dx - x derivative

dy - y derivative

d2x - x second derivative

d2y - y second derivative

Constructors

<init>

Knot(pos: Vector2d, deriv: Vector2d = Vector2d(), secondDeriv: Vector2d = Vector2d())

Class for representing the end points of interpolated quintic splines.

Knot(x: Double, y: Double, dx: Double = 0.0, dy: Double = 0.0, d2x: Double = 0.0, d2y: Double = 0.0)

Properties

d2x

x second derivative

val d2x: Double

d2y

y second derivative

val d2y: Double

dx

x derivative

val dx: Double

dy

y derivative

val dy: Double

x

x position

val x: Double

y

y position

val y: Double

Functions

deriv

fun deriv(): Vector2d

pos

fun pos(): Vector2d

secondDeriv

fun secondDeriv(): Vector2d