AutoMovie API
    Preparing search index...

    Variable outlineCentroidConst

    outlineCentroid: (
        outline: readonly IAutoMoviePlanarPoint[],
    ) => IAutoMoviePlanarPoint = ...

    The area-weighted centroid of a closed planar outline, or the mean of its points when the outline encloses no area.

    The outline is read as a simple polygon closing from its last point back to its first, in either winding. When the absolute doubled signed area is at most AUTOMOVIE_OBSERVATION_EPSILON, including a sufficiently small nonzero area, the vertex mean is returned instead. An empty outline answers NaN coordinates.

    Type Declaration