Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)
Esempio n. 5
0
 def test_rotate_0deg(self):
     vals = rotate_2d(x=1, y=0, angle_deg=0)
     truevals = [1.0, 0.0]
     assert_allclose(vals, truevals)
Esempio n. 6
0
 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)
Esempio n. 7
0
 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)
Esempio n. 8
0
 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)
Esempio n. 9
0
 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)
Esempio n. 10
0
 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)
Esempio n. 11
0
 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)
Esempio n. 12
0
 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)