Function

curveLengthApproximation

(curve: (t: number) => Vec2, entries: number, detail: number): (t: number, inverse: boolean) => number

Returns a function. entries is the amount of entries in the LUT. detail is the sampling granularity of each segment recorded in the LUT. This new function either returns the length for a given t, or t for a given length, depending on the inverse parameter.

since v3001.0

group Math

kaplay logo

Layer

Miscalenous