Skip to content

five-on-it / packages/catalogue/src/city/lines / closedSpline

Function: closedSpline() ​

closedSpline(points, step?): Pt[]

Defined in: packages/catalogue/src/city/lines.ts:203

A smooth closed curve through the points (centripetal Catmull–Rom all the way round), its first point not repeated at its end.

Parameters ​

points ​

readonly Pt[]

step? ​

number = 6

Returns ​

Pt[]