MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / getMid

Function getMid

other/sierpinski_triangle.py:40–41  ·  view source on GitHub ↗
(p1,p2)

Source from the content-addressed store, hash-verified

38points = [[-175,-125],[0,175],[175,-125]] #size of triangle
39
40def getMid(p1,p2):
41 return ( (p1[0]+p2[0]) / 2, (p1[1] + p2[1]) / 2) #find midpoint
42
43def triangle(points,depth):
44

Callers 1

triangleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected