def test_rejects_another_clockwise(self): val = cr.testcounterclockwiseconvex([[0, 0], [-1, -1], [2, 1], [3, 1], [2, 2], [0, 2]]) self.assertFalse(val)
def test_matches_counter_clockwise(self): val = cr.testcounterclockwiseconvex([[0, 0], [2, 0], [3, 1], [2, 2], [0, 2]]) self.assertTrue(val)