def test_pan_1(self): transformation = [0, 0, 1] self.assertAlmostEqual(calculate_angles(transformation)[0], 0)
def test_pan_4_negative(self): transformation = [0, 1, -1] self.assertAlmostEqual( calculate_angles(transformation)[0], 3 * np.pi / 4)
def test_tilt_3(self): transformation = [1, 0, 0] self.assertAlmostEqual(calculate_angles(transformation)[1], np.pi / 2)
def test_pan_3(self): transformation = [0, 1, 0] self.assertAlmostEqual(calculate_angles(transformation)[0], np.pi / 2)
def test_tilt_3(self): transformation = [1, 0, 0] self.assertAlmostEqual(calculate_angles(transformation)[1], np.pi / 2)
def test_tilt_1(self): transformation = [0, 0, 1] self.assertAlmostEqual(calculate_angles(transformation)[1], 0)
def test_pan_4_negative(self): transformation = [0, 1, -1] self.assertAlmostEqual(calculate_angles(transformation)[0], 3 * np.pi / 4)
def test_pan_3(self): transformation = [0, 1, 0] self.assertAlmostEqual(calculate_angles(transformation)[0], np.pi / 2)