def test_compute_relative_rotation_angle(self):
    'Tests the relative angle between two rotations.'
    R_1 = Rot3.RzRyRx(0, np.deg2rad(45), np.deg2rad(22.5))
    R_2 = Rot3.RzRyRx(0, np.deg2rad(90), np.deg2rad(22.5))
    computed_deg = geometry_comparisons.compute_relative_rotation_angle(R_1, R_2)
    expected_deg = 45
    np.testing.assert_allclose(computed_deg, expected_deg, rtol=0.001, atol=0.001)
Tests the relative angle between two rotations.
def test_compute_relative_rotation_angle(self):
    
    R_1 = Rot3.RzRyRx(0, np.deg2rad(45), np.deg2rad(22.5))
    R_2 = Rot3.RzRyRx(0, np.deg2rad(90), np.deg2rad(22.5))
    computed_deg = geometry_comparisons.compute_relative_rotation_angle(R_1, R_2)
    expected_deg = 45
    np.testing.assert_allclose(computed_deg, expected_deg, rtol=0.001, atol=0.001)