def test_point_intersect_line_segment_invalid(self): p = np.array([3.,3.,3.]) l = np.array([[0.,0.,0.],[2.,2.,2.]]) result = gt.point_intersect_line_segment(p, l) self.assertEqual(result, None)
def test_point_intersect_line_segment_invalid(self): p = np.array([3.,3.,3.]) l = np.array([[0.,0.,0.],[2.,2.,2.]]) result = gt.point_intersect_line_segment(p, l) self.assertEqual(result, None)
def test_point_intersect_line_segment(self): p = np.array([1.,1.,1.]) l = np.array([[0.,0.,0.],[2.,2.,2.]]) result = gt.point_intersect_line_segment(p, l) self.assertTrue(np.array_equal(result, p))
def test_point_intersect_line_segment(self): p = np.array([1.,1.,1.]) l = np.array([[0.,0.,0.],[2.,2.,2.]]) result = gt.point_intersect_line_segment(p, l) self.assertTrue(np.array_equal(result, p))