Compute the intersection of two simple polygons.
ring1
[lng0,lat0, ..., lng0,lat0]
ring2
A Float64Array with the intersection ring(s). Empty if polygons don't intersect.
Float64Array
Compute the intersection of two simple polygons.
Arguments
ring1— First polygon as flat closed ring[lng0,lat0, ..., lng0,lat0]ring2— Second polygon as flat closed ring[lng0,lat0, ..., lng0,lat0]Returns
A
Float64Arraywith the intersection ring(s). Empty if polygons don't intersect.