xoa.core.poly.points_in_polygon

xoa.core.poly.points_in_polygon#

xoa.core.poly.points_in_polygon(x, y, poly)[source]#

Test if points are inside a polygon

Parameters:
  • x (array_like) – Coordinates of the points, that have the same shape

  • y (array_like) – Coordinates of the points, that have the same shape

  • poly (array_like(n, 2)) – Vertices of the polygon as (x, y) pairs

Returns:

array(bool) – Same shape as x

See also

point_in_polygon