Intermact API Reference / @intermact/core / cumulativeLengths3
Function: cumulativeLengths3()
cumulativeLengths3(
points,closed):object
Defined in: packages/core/src/geometry/provider3d.ts:24
Prefix-sum arc lengths and the total length of a 3D polyline.
Parameters
points
Float32Array
closed
boolean
Returns
object
cumulative
cumulative:
Float32Array
total
total:
number