module:Spline

Spline class
spline demo

Constructor

new module:Spline(positionDefinition, points, tensionopt, optionsopt)

Spline constructor

Parameters:
NameTypeAttributesDefaultDescription
positionDefinitionPositionDefinition

First point

pointsArray.<PositionDefinition> | PositionDefinition

Set of points to go through or a single target point

tensionNumber<optional>
Spline.defaultTension

Ratio of tension between points (0 means straight line, can take any value, but with weird results above 1)

optionsLineOptions<optional>

Drawing options

Extends