Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in 3rd party category for Inside Block by Oleg_Domokeev
from sympy import Polygon
def is_inside(polygon, point):
poly = Polygon(*polygon)
return any(point in side for side in poly.sides) or poly.encloses_point(point)
April 7, 2020
Comments: