Builtin Library
README.md
proc.polyline
Arc-length measure along a polyline held as flat positions { x0, y0, z0, ... }: its length(pos, closed), and sample(pos, closed, t) (the position), tangent(pos, closed, t) (the unit direction) and locate(pos, closed, t) (the span and how far along it) a share t of the way along it, t in [0, 1]. The ops that sample, sweep or grow along a geometry's curves measure them here.
proc.polyline.length({ 0, 0, 0, 3, 4, 0 }, false) --> 5
Part of @builtin::systems.procgen.proc; reached as proc.polyline.