Exemple #1
0
 def test_rotate(self):
     c = (0, 0, 0)
     t = Triangle([0, 0, 10, 0, 10, 10], c, 255)
     t.rotate(2 * math.pi)
     self.assertEquals(t.coordinates, [0, 0, 10, 0, 10, 10])
Exemple #2
0
 def test_rotate(self):
     c = (0, 0, 0)
     t = Triangle([0, 0, 10, 0, 10, 10], c, 255)
     t.rotate(2 * math.pi)
     self.assertEquals(t.coordinates, [0, 0, 10, 0, 10, 10])