Beispiel #1
0
 def test_scale(self):
     calc1 = Quaternion.scale(self.q3, 5)
     target = np.array([3.0, 7.0, 9.0, 2.0]) * 5
     np.testing.assert_almost_equal(calc1.tondarray(), target)
Beispiel #2
0
 def test_scale(self):
     calc1  = Quaternion.scale(self.q3, 5)
     target = np.array([3.0, 7.0, 9.0, 2.0]) * 5
     np.testing.assert_almost_equal(calc1.tondarray(), target)