def test_to_matrix(self): # Default value should be identity rot_d = Rotation('d') numpy.testing.assert_array_equal(rot_d.matrix(), numpy.eye(3)) rot_f = Rotation('f') numpy.testing.assert_array_equal(rot_f.matrix(), numpy.eye(3))
def test_to_matrix(self): # Default value should be identity rot_d = Rotation(ctypes.c_double) numpy.testing.assert_array_equal(rot_d.matrix(), numpy.eye(3)) rot_f = Rotation(ctypes.c_float) numpy.testing.assert_array_equal(rot_f.matrix(), numpy.eye(3))
def test_to_matrix(self): # Default value should be identity rot_d = Rotation('d') numpy.testing.assert_array_equal( rot_d.matrix(), numpy.eye(3) ) rot_f = Rotation('f') numpy.testing.assert_array_equal( rot_f.matrix(), numpy.eye(3) )
def test_to_matrix(self): # Default value should be identity rot_d = Rotation(ctypes.c_double) numpy.testing.assert_array_equal( rot_d.matrix(), numpy.eye(3) ) rot_f = Rotation(ctypes.c_float) numpy.testing.assert_array_equal( rot_f.matrix(), numpy.eye(3) )