Exemplo n.º 1
0
            def point_3():
                point = [ 1.0, 1.0 ]
                result = gt.point_intersect_rectangle( point, rect )

                self.assertTrue(
                    numpy.array_equal( result, point )
                    )
Exemplo n.º 2
0
 def test_point_intersect_rectangle_invalid_intersections_3(self):
     rect = np.array([
         [0.0, 0.0],
         [5.0, 5.0]
     ])
     point = [ 1.0,-1.0]
     result = gt.point_intersect_rectangle(point, rect)
     self.assertFalse(np.array_equal(result, point))
Exemplo n.º 3
0
 def test_point_intersect_rectangle_invalid_intersections_2(self):
     r = np.array([
         [0.0, 0.0],
         [5.0, 5.0]
     ])
     p = [ 1.0, 10.0]
     result = gt.point_intersect_rectangle(p, r)
     self.assertFalse(np.array_equal(result, p))
Exemplo n.º 4
0
 def test_point_intersect_rectangle_invalid_intersections_3(self):
     rect = np.array([
         [0.0, 0.0],
         [5.0, 5.0]
     ])
     point = [ 1.0,-1.0]
     result = gt.point_intersect_rectangle(point, rect)
     self.assertFalse(np.array_equal(result, point))
Exemplo n.º 5
0
 def test_point_intersect_rectangle_invalid_intersections_2(self):
     r = np.array([
         [0.0, 0.0],
         [5.0, 5.0]
     ])
     p = [ 1.0, 10.0]
     result = gt.point_intersect_rectangle(p, r)
     self.assertFalse(np.array_equal(result, p))