MCPcopy Index your code
hub / github.com/OmkarPathak/pygorithm / test_contains_point_edge

Method test_contains_point_edge

tests/test_geometry.py:785–790  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

783 self._contains_point_fuzzer(poly.points, vector2.Vector2(3, 0), False, False)
784
785 def test_contains_point_edge(self):
786 poly = polygon2.Polygon2([ (2, 3), (3, 5), (5, 4), (3, 2) ])
787
788 self._contains_point_fuzzer(poly.points, vector2.Vector2(4, 3), True, False)
789 self._contains_point_fuzzer(poly.points, vector2.Vector2(2.5, 2.5), True, False)
790 self._contains_point_fuzzer(poly.points, vector2.Vector2(4, 4.5), True, False)
791
792 def test_contains_point_contained(self):
793 poly = polygon2.Polygon2([ (-3, -6), (-2, -3), (2, -2), (0, -5) ])

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected