Ejemplo n.º 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)
Ejemplo n.º 2
0
 def test_quaternion_from_matrix_1(self):
     q = self.f(t.identity_matrix(), True)
     assert_allclose(q, [1., 0., 0., 0.], atol=_ATOL)
Ejemplo n.º 3
0
 def test_quaternion_matrix_2(self):
     M = self.f([1, 0, 0, 0])
     assert_allclose(M, t.identity_matrix(), atol=_ATOL)
Ejemplo n.º 4
0
 def test_quaternion_matrix_2(self):
     M = self.f([1, 0, 0, 0])
     assert_allclose(M, t.identity_matrix(), atol=_ATOL)