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

Method __init__

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

Initializes polygon with a list of vertices.

(self, *vertices)

Source from the content-addressed store, hash-verified

12 __slots__ = 'vertices'
13
14 def __init__(self, *vertices):
15 "Initializes polygon with a list of vertices."
16 self.vertices = vertices
17
18 def translate(self, offset):
19 "Moves the polygon by the specified offset."

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected