def test_rotate_360deg(self): vals = rotate_2d(x=1, y=0, angle_deg=360) truevals = [1.0, -2.4492935982947064e-16] assert_allclose(vals, truevals)
def test_rotate_90deg(self): vals = rotate_2d(x=1, y=0, angle_deg=90) truevals = [6.123233995736766e-17, 1.0] assert_allclose(vals, truevals)
def test_rotate_180deg(self): vals = rotate_2d(x=1, y=0, angle_deg=180) truevals = [-1.0, 1.2246467991473532e-16] assert_allclose(vals, truevals)
def test_rotate_360deg(self): vals = list(rotate_2d(x=1, y=0, angle_deg=360)) truevals = [1.0, -2.4492935982947064e-16] self.assertListEqual(vals, truevals)
def test_rotate_0deg(self): vals = rotate_2d(x=1, y=0, angle_deg=0) truevals = [1.0, 0.0] assert_allclose(vals, truevals)
def test_rotate_90deg(self): vals = list(rotate_2d(x=1, y=0, angle_deg=90)) truevals = [6.123233995736766e-17, 1.0] self.assertListEqual(vals, truevals)
def test_rotate_180deg(self): vals = list(rotate_2d(x=1, y=0, angle_deg=180)) truevals = [-1.0, 1.2246467991473532e-16] self.assertListEqual(vals, truevals)
def test_rotate_0deg(self): vals = list(rotate_2d(x=1, y=0, angle_deg=0)) truevals = [1.0, 0.0] self.assertListEqual(vals, truevals)
def test_rotate_360deg(self): vals = list(rotate_2d(x=1, y=0, angle_deg=360)) truevals = [1.0, -2.4492935982947064e-16] self.assertListEqual(vals, truevals)
def test_rotate_180deg(self): vals = list(rotate_2d(x=1, y=0, angle_deg=180)) truevals = [-1.0, 1.2246467991473532e-16] self.assertListEqual(vals, truevals)
def test_rotate_90deg(self): vals = list(rotate_2d(x=1, y=0, angle_deg=90)) truevals = [6.123233995736766e-17, 1.0] self.assertListEqual(vals, truevals)
def test_rotate_0deg(self): vals = list(rotate_2d(x=1, y=0, angle_deg=0)) truevals = [1.0, 0.0] self.assertListEqual(vals, truevals)