def test_compute_relative_unit_translation_angle(self):
    'Tests the relative angle between two unit-translations.'
    U_1 = Unit3(np.array([1, 0, 0]))
    U_2 = Unit3(np.array([0.5, 0.5, 0]))
    computed_deg = geometry_comparisons.compute_relative_unit_translation_angle(U_1, U_2)
    expected_deg = 45
    self.assertAlmostEqual(computed_deg, expected_deg, places=3)
Tests the relative angle between two unit-translations.
def test_compute_relative_unit_translation_angle(self):
    
    U_1 = Unit3(np.array([1, 0, 0]))
    U_2 = Unit3(np.array([0.5, 0.5, 0]))
    computed_deg = geometry_comparisons.compute_relative_unit_translation_angle(U_1, U_2)
    expected_deg = 45
    self.assertAlmostEqual(computed_deg, expected_deg, places=3)