コード例 #1
0
 def rotate(self, center, angle):
     with PostponeCurveGeometricUpdatingToEnd(self):
         Graphic.rotate(self, center, angle)
         for element in self.elements:
             element.rotate(center, angle)
コード例 #2
0
 def rotate(self, center, angle):
     with PostponeGeometricUpdatingToEnd(self):
         self.coords = rotate(self.coords, ORIGIN, angle)
         Graphic.rotate(self, center, angle)