MCPcopy Index your code
hub / github.com/geekcomputers/Python / getMid

Function getMid

sierpinski_triangle.py:42–43  ·  view source on GitHub ↗
(p1, p2)

Source from the content-addressed store, hash-verified

40
41
42def getMid(p1, p2):
43 return ((p1[0] + p2[0]) / 2, (p1[1] + p2[1]) / 2) # find midpoint
44
45
46def triangle(points, depth):

Callers 1

triangleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected