wasm-spatial-core
    Preparing search index...

    Function isPointInRing

    • Test if a point is inside a polygon ring using the ray-casting algorithm.

      Arguments

      • point_x: Longitude of the test point.
      • point_y: Latitude of the test point.
      • ring_coords: Flat Float64Array [lng0,lat0, lng1,lat1, ...] defining the ring. The ring does not need to be explicitly closed.

      Returns true if the point is inside the ring.

      Parameters

      • point_x: number
      • point_y: number
      • ring_coords: Float64Array

      Returns boolean