wasm-spatial-core
    Preparing search index...

    Function convexHull

    • Compute the convex hull of a set of 2D points using Andrew's monotone chain algorithm.

      Arguments

      • coords: Flat Float64Array [lng0, lat0, lng1, lat1, ...].

      Returns

      Flat Float64Array of convex hull vertices (closed: first == last).

      Parameters

      • coords: Float64Array

      Returns Float64Array