def test_is_point_lie_in_poly(): verify = PolyGon._is_point_in_poly((-33.416032, -70.593016), -33.416032, -70.593016, [(-33.416032, -70.593016), (-33.415370, -70.589604), (-33.417340, -70.589046), (-33.417949, -70.592351), (-33.416032, -70.593016)]) assert verify == False
def test_is_point_lie_on_polygon(): verify = PolyGon._is_point_in_poly((9, 0), 9, 0, [(0, 10), (10, 10), (10, 0), (0, 0)]) assert verify == True
def test_is_point_ON_poly(): verify = PolyGon._is_point_in_poly((90, 90), 90, 90, [(0, 100), (100, 100), (100, 0), (0, 0)]) assert verify == True
def test_is_point_lie_ON_poly(): verify = PolyGon._is_point_in_poly((2, 2), 2, 2, [(0, 0), (0, 2), (2, 2), (2, 0)]) assert verify == True
def test_is_point_lie_OUT_poly(): verify = PolyGon._is_point_in_poly((-10, 1), -10, 1, [(0, 10), (10, 10), (10, 0), (0, 0)]) assert verify == False
def test_is_point_in_poly(): # polygon = [(0, 5), (5, 5), (5, 0), (0, 0)] verify = PolyGon._is_point_in_poly((4, 2), 4, 2, [(0, 5), (5, 5), (5, 0), (0, 0)]) assert verify == True
def test_is_point_inside_poly(): # polygon = [(0,10),(10,10),(10,0),(0,0)] verify = PolyGon._is_point_in_poly((5, 9), 5, 9, [(0, 10), (10, 10), (10, 0), (0, 0)]) assert verify == True
def test_is_point_inner_poly(): verify = PolyGon._is_point_in_poly((10, 12), 10, 12, [(0, 10), (10, 10), (10, 0), (0, 0)]) assert verify == False