def _rotate_edit_points(self):
     ax, ay = self.edit_points[0]
     for i in range(1, 7):
         x, y = viewgeom.rotate_point_around_point(self.rotation,
                                                   self.edit_points[i],
                                                   self.edit_points[0])
         self.edit_points[i] = (x, y)
 def _rotate_edit_points(self):
     ax, ay = self.edit_points[0]
     for i in range(1, 7):
         x, y = viewgeom.rotate_point_around_point(self.rotation, self.edit_points[i], self.edit_points[0])
         self.edit_points[i] = (x, y)
Exemple #3
0
 def rotate_from_move_start(self, anchor, angle):
     for ep in self.edit_points:
         rotated_pos = viewgeom.rotate_point_around_point(angle,
                                                         ep.get_start_pos(),
                                                         anchor )
         ep.set_pos(rotated_pos)
Exemple #4
0
 def rotate_from_move_start(self, anchor, angle):
     for ep in self.edit_points:
         rotated_pos = viewgeom.rotate_point_around_point(angle,
                                                         ep.get_start_pos(),
                                                         anchor )
         ep.set_pos(rotated_pos)