Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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))
Example #4
0
 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))