MCPcopy Create free account
hub / github.com/ActiveState/code / scale

Method scale

recipes/Python/578004_processing/recipe-578004.py:28–31  ·  view source on GitHub ↗

Increases or decreases size of the polygon.

(self, factor)

Source from the content-addressed store, hash-verified

26 vertex.direction += direction
27
28 def scale(self, factor):
29 "Increases or decreases size of the polygon."
30 for vertex in self.vertices:
31 vertex *= factor
32
33 def copy(self):
34 "Copies the polygon by copying its vertices."

Callers 4

OnPaintMethod · 0.80
displayRectFunction · 0.80
moveFunction · 0.80
paintEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected