@openhps/geospatial
    Preparing search index...

    Function polygonCentroid

    • Computes the centroid of a ring (the polygon centroid, not the vertex average).

      Parameters

      • ring: readonly Point2[]

        The ring (open or closed)

      Returns Point2

      The centroid, or undefined for a degenerate ring