Skip to content
Entangle UI v0.13.0

sampleCurve

sampleCurve(curve, numSamples): object[]

Defined in: src/components/controls/CurveEditor/curveUtils.ts:220

Sample the curve at N evenly-spaced X points. Returns array of {x, y} for rendering as a polyline.

CurveData

number

object[]