Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)