Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 16, 2023
1 parent 08f986b commit a95e242
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/src/python/test_qgsorientedbox3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def test_oriented_bounding_box(self):

# 45 degree y axis rotation
box = QgsOrientedBox3D([1, 2, 3],
[math.cos(math.pi / 4), 0, math.sin(math.pi / 4),
0, 1, 0,
-math.sin(math.pi / 4), 0, math.cos(math.pi / 4)])
[math.cos(math.pi / 4), 0, math.sin(math.pi / 4),
0, 1, 0,
-math.sin(math.pi / 4), 0, math.cos(math.pi / 4)])
self.assertEqual(box.centerX(), 1)
self.assertEqual(box.centerY(), 2)
self.assertEqual(box.centerZ(), 3)
Expand All @@ -75,9 +75,9 @@ def test_box_extent(self):

# 45 degree y axis rotation
box = QgsOrientedBox3D([1, 2, 3],
[math.cos(math.pi / 4), 0, math.sin(math.pi / 4),
0, 1, 0,
-math.sin(math.pi / 4), 0, math.cos(math.pi / 4)])
[math.cos(math.pi / 4), 0, math.sin(math.pi / 4),
0, 1, 0,
-math.sin(math.pi / 4), 0, math.cos(math.pi / 4)])
bounds = box.extent()
self.assertAlmostEqual(bounds.xMinimum(), 1 - math.sqrt(2), 5)
self.assertAlmostEqual(bounds.xMaximum(), 1 + math.sqrt(2), 5)
Expand Down

0 comments on commit a95e242

Please sign in to comment.