cubic
fun cubic(seed: Int, x: Double, y: Double, interpolator: (Double) -> Double = ::linear): Double(source)
fun cubic(seed: Int, x: Double, y: Double, z: Double, interpolator: (Double) -> 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.