AutoMovie API
    Preparing search index...

    Variable polygonDoubleAreaConst

    polygonDoubleArea: (polygon: readonly IAutoMoviePlanarPoint[]) => number = ...

    Twice the signed area of a closed polygon, positive when counter-clockwise.

    The ring closes from last to first in its planar frame; units are squared polygon units and counter-clockwise uses x right, y up. Empty input returns zero. In exact arithmetic the shoelace sum is twice signed area, or a winding-weighted sum for self-crossings; this binary64 accumulation can cancel or overflow, especially for small regions at large offsets.

    Type Declaration

      • (polygon: readonly IAutoMoviePlanarPoint[]): number
      • Parameters

        Returns number

        The shoelace sum, twice the signed enclosed area.