AutoMovie API
    Preparing search index...

    Variable canonicalAutoMoviePatternPolygonConst

    canonicalAutoMoviePatternPolygon: (
        polygon: readonly IAutoMoviePatternPoint[],
        label: string,
    ) => IAutoMoviePatternPoint[] = ...

    Canonicalize an authored face-local polygon to a counter-clockwise convex outline, or throw.

    Treats the input as an unordered point set and compares hull/input counts. Interior, duplicate and collinear points dropped by the hull cause refusal. Authored boundary order is discarded: even a self-crossing ordering of convex-position points can be accepted and reordered.

    Throws an Error prefixed with label for a non-finite corner, for fewer than three non-collinear corners, and for any corner the hull drops.

    Type Declaration