AutoMovie API
    Preparing search index...

    Controls and the last measured free-vertex residual from a one-shot fit. The caller decides whether the residual is acceptable; the fitter returns after its iteration cap without throwing for nonconvergence.

    type IResult = {
        positions: number[];
        residual: number;
    }
    Index
    positions: number[]

    Newly allocated mutable packed XYZ controls, in targets' frame and unit. Held controls equal their target; no storage is shared with input arrays.

    residual: number

    Largest Euclidean free-vertex residual measured in the final iteration, in the target length unit; zero if no vertex is free. Exhausting 2,000 iterations does not throw. At the iteration cap, a final residual traversal measures the returned controls after the last permitted update.