cubic

fun cubic(seed: Int, x: Double, interpolator: (Double) -> Double = ::linear): Double(source)
fun cubic(seed: Int, x: Double, y: Double): Double(source)
fun cubic(seed: Int, position: Vector2): Double(source)
fun cubic(seed: Int, x: Double, y: Double, interpolator: (Double) -> Double = ::linear): Double(source)
fun cubic(seed: Int, x: Double, y: Double, z: Double): Double(source)
fun cubic(seed: Int, position: Vector3): Double(source)
fun cubic(seed: Int, x: Double, y: Double, z: Double, interpolator: (Double) -> Double): Double(source)


fun cubic(a: Double, b: Double, c: Double, d: Double, t: Double): Double(source)

Computes the value of a cubic interpolation given control points and a parameter t.

Return

The interpolated value at the given t.

Parameters

a

The first control point.

b

The second control point.

c

The third control point.

d

The fourth control point.

t

The interpolation factor, typically between 0 and 1.