Example #1
0
 def test_quaternion_from_matrix_1(self):
     q = self.f(t.identity_matrix(), True)
     assert_allclose(q, [1., 0., 0., 0.], atol=_ATOL)
 def test_quaternion_from_matrix_1(self):
     q = self.f(t.identity_matrix(), True)
     assert_allclose(q, [1., 0., 0., 0.], atol=_ATOL)
Example #3
0
 def test_quaternion_matrix_2(self):
     M = self.f([1, 0, 0, 0])
     assert_allclose(M, t.identity_matrix(), atol=_ATOL)
 def test_quaternion_matrix_2(self):
     M = self.f([1, 0, 0, 0])
     assert_allclose(M, t.identity_matrix(), atol=_ATOL)