CatmullRom1
class CatmullRom1(val p0: Double, val p1: Double, val p2: Double, val p3: Double, val alpha: Double = 0.5)(source)
Creates a 1D Catmull-Rom spline curve.
Parameters
p0
The first control point.
p1
The starting anchor point.
p2
The ending anchor point.
p3
The second control point.
alpha
The tension of the curve. Use 0.0
for the uniform spline, 0.5
for the centripetal spline, 1.0
for the chordal spline.