Ejemplo n.º 1
0
 def test(self):
     corners = [Point(0.0, 0.0, 0.0), Point(0.0, 0.089932, 0.0),
                Point(0.0, 0.089932, 10.0), Point(0.0, 0.0, 10.0)]
     surface = PlanarSurface(1, 45, 90, *corners)
     self.assertTrue(
         Point(0.0, 0.044966, 5.0) == surface.get_middle_point()
     )
Ejemplo n.º 2
0
 def test(self):
     corners = [Point(0.0, 0.0, 0.0), Point(0.0, 0.089932, 0.0),
                Point(0.0, 0.089932, 10.0), Point(0.0, 0.0, 10.0)]
     surface = PlanarSurface(1, 45, 90, *corners)
     self.assertTrue(
         Point(0.0, 0.044966, 5.0) == surface.get_middle_point()
     )
Ejemplo n.º 3
0
 def test_topo(self):
     corners = [Point(0.0, 0.0, 0.0), Point(0.0, 0.089932, 0.0),
                Point(0.0, 0.089932, -8.0), Point(0.0, 0.0, -8.0)]
     surface = PlanarSurface(45, 90, *corners)
     midpoint = surface.get_middle_point()
     aac(midpoint.longitude, 0.0, atol=1E-4)
     aac(midpoint.latitude, 0.044966, atol=1E-4)
     aac(midpoint.depth, -4.0, atol=1E-4)
Ejemplo n.º 4
0
 def test_topo(self):
     corners = [Point(0.0, 0.0, 0.0), Point(0.0, 0.089932, 0.0),
                Point(0.0, 0.089932, -8.0), Point(0.0, 0.0, -8.0)]
     surface = PlanarSurface(1, 45, 90, *corners)
     midpoint = surface.get_middle_point()
     assert_aeq(midpoint.longitude, 0.0, decimal=5)
     assert_aeq(midpoint.latitude, 0.044966, decimal=5)
     assert_aeq(midpoint.depth, -4.0, decimal=5)
Ejemplo n.º 5
0
 def test_topo(self):
     corners = [Point(0.0, 0.0, 0.0), Point(0.0, 0.089932, 0.0),
                Point(0.0, 0.089932, -8.0), Point(0.0, 0.0, -8.0)]
     surface = PlanarSurface(45, 90, *corners)
     midpoint = surface.get_middle_point()
     aac(midpoint.longitude, 0.0, atol=1E-4)
     aac(midpoint.latitude, 0.044966, atol=1E-4)
     aac(midpoint.depth, -4.0, atol=1E-4)