Beispiel #1
0
    def test_bounding_box_7(self):
        bbox1 = BBox(Point(0, 0, 0), Point(2, 2, 2))

        bbox2 = BBox(Point(2.5, 2.5, 2.5), Point(3, 3, 3))
        self.assertEqual(bbox1.overlaps(bbox2), False)

        bbox3 = BBox(Point(-1, -1, -1), Point(0.5, 0.5, 0.5))
        self.assertEqual(bbox1.overlaps(bbox3), True)
Beispiel #2
0
    def test_bounding_box_7(self):
        bbox1 = BBox(Point(0, 0, 0),
                     Point(2, 2, 2))

        bbox2 = BBox(Point(2.5, 2.5, 2.5),
                     Point(3, 3, 3))
        self.assertEqual(bbox1.overlaps(bbox2), False)

        bbox3 = BBox(Point(-1, -1, -1),
                     Point(0.5, 0.5, 0.5))
        self.assertEqual(bbox1.overlaps(bbox3), True)