Knot

class Knot @JvmOverloads constructor(val x: Double, val y: Double, val dx: Double = 0.0, val dy: Double = 0.0, val d2x: Double = 0.0, val d2y: Double = 0.0)

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

Link copied to clipboard
constructor(pos: Vector2d, deriv: Vector2d = Vector2d(), secondDeriv: Vector2d = Vector2d())
constructor(x: Double, y: Double, dx: Double = 0.0, dy: Double = 0.0, d2x: Double = 0.0, d2y: Double = 0.0)

Properties

Link copied to clipboard
val d2x: Double = 0.0
Link copied to clipboard
val d2y: Double = 0.0
Link copied to clipboard
val dx: Double = 0.0
Link copied to clipboard
val dy: Double = 0.0
Link copied to clipboard
val x: Double
Link copied to clipboard
val y: Double

Functions

Link copied to clipboard
Link copied to clipboard
fun pos(): Vector2d
Link copied to clipboard