Skip to content

SplineCurve

new SplineCurve(points?: Vector2[])

THREE equivalent: THREE.SplineCurve

2D Catmull-Rom spline through a set of points.

Name Type Description
points Vector2[] Control points the spline passes through.
Method Description
getPoint(t: number, target?: Vector2): Vector2 Returns the point at parameter t.