Test: [skip ci] test for fixed Rotation::inverse()

This commit is contained in:
wmayer
2022-06-20 12:39:22 +02:00
parent 796d722072
commit 35919e2a75

View File

@@ -318,6 +318,11 @@ class AlgebraTestCase(unittest.TestCase):
self.assertAlmostEqual(a[2], 30.0)
self.assertTrue(r.isSame(s, 1e-12))
def testInverted(self):
p = FreeCAD.Placement()
p.Rotation.Angle = math.pi / 2
self.assertEqual(abs(p.inverse().Rotation.Angle), p.Rotation.Angle)
def testYawPitchRoll(self):
def getYPR1(yaw, pitch, roll):
r = FreeCAD.Rotation()