Point2D: [number, number]

A 2D point. Used as the canonical tuple form for inputs and outputs of the helpers in this module. Mutable so the type composes freely with caller-owned [number, number][] buffers; the helpers themselves never mutate their inputs.