Skip to content

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

Function: spline() ​

spline(points, startDir?, endDir?, step?): Pt[]

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

A smooth curve through the points (centripetal Catmull–Rom), leaving along startDir and arriving along endDir when given.

Parameters ​

points ​

readonly Pt[]

startDir? ​

Pt

endDir? ​

Pt

step? ​

number = 3

Returns ​

Pt[]