Exemplo n.º 1
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)
Exemplo n.º 2
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)
Exemplo n.º 3
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)
Exemplo n.º 4
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)
Exemplo n.º 5
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)
Exemplo n.º 6
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)
Exemplo n.º 7
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)
Exemplo 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)