Exemple #1
0
def test_euler_to_rot3d_1():
    """Test euler_to_quaternion for 90deg rotations along 1st axis."""
    rot90 = convert.euler_to_rot3d(np.pi / 2, 0., 0.)
    assert np.allclose(rot90, cst.Rz90)
Exemple #2
0
def test_euler_to_rot3d_3():
    """Test euler_to_quaternion for 90deg rotations along 3rd axis."""
    rot90 = convert.euler_to_rot3d(0., 0., np.pi / 2)
    assert np.allclose(rot90, Rz90)