Beispiel #1
0
 def test_bounding_box_8(self):
     bbox = BBox(Point(0, 0, 0),
                 Point(2, 3, 2))
     p, r = bbox.bounding_sphere()
     
     self.assertEqual(p, Point(1,1.5,1))
     self.assertEqual(r, math.sqrt(1.5*1.5+1+1))
Beispiel #2
0
    def test_bounding_box_8(self):
        bbox = BBox(Point(0, 0, 0), Point(2, 3, 2))
        p, r = bbox.bounding_sphere()

        self.assertEqual(p, Point(1, 1.5, 1))
        self.assertEqual(r, math.sqrt(1.5 * 1.5 + 1 + 1))