AutoMovie API
    Preparing search index...
    • Area centroid [x, z] of a simple closed polygon in mm.

      Uses the shoelace decomposition into origin triangles. A twice-area magnitude below 1e-9 squared input units falls back to the vertex mean; an empty polygon returns the zero pair.

      Parameters

      • polygon: readonly (readonly [number, number])[]

      Returns [number, number]