def test_intersects(self): a = np.array([1, 0]) b = np.array([2, -1]) c = np.array([[2, -2], [1, -1], [0, 0], [1, -0.01]]) d = np.array([[4, 0], [2, 0], [-1, -1], [2, 0]]) np.testing.assert_array_equal(np.array([False, True, False, True]), intersects(a, b, c, d))