Exemplo n.º 1
0
 def test(self):
     corners = [Point(-0.00317958, -0.00449661, 4.64644661),
                Point(-0.00317958, 0.00449661, 4.64644661),
                Point(0.00317958, 0.00449661, 5.35355339),
                Point(0.00317958, -0.00449661, 5.35355339)]
     surface = PlanarSurface(0.0, 45.0, *corners)
     west, east, north, south = surface.get_bounding_box()
     self.assertEqual(-0.00317958, west)
     self.assertEqual(0.00317958, east)
     self.assertEqual(0.00449661, north)
     self.assertEqual(-0.00449661, south)
Exemplo n.º 2
0
 def test(self):
     corners = [Point(-0.00317958, -0.00449661, 4.64644661),
                Point(-0.00317958, 0.00449661, 4.64644661),
                Point(0.00317958, 0.00449661, 5.35355339),
                Point(0.00317958, -0.00449661, 5.35355339)]
     surface = PlanarSurface(1, 0.0, 45.0, *corners)
     west, east, north, south = surface.get_bounding_box()
     self.assertEqual(-0.00317958, west)
     self.assertEqual(0.00317958, east)
     self.assertEqual(0.00449661, north)
     self.assertEqual(-0.00449661, south)