CatmullRomChain2

constructor(points: List<Vector2>, alpha: Double = 0.5, loop: Boolean = false)(source)

Parameters

points

The List of 2D points where CatmullRom2 is applied in groups of 4.

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.

loop

Whether to connect the first and last point, such that it forms a closed shape.