Skip to content
GitHub repository
Function

toFlat

function toFlat(points: PointsInput): number[];

Normalises [x0, y0, x1, y1, ...] or [{x, y}, ...] into a flat number array.

Parameters#

ParameterType
pointsPointsInput

Returns#

number[]