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

Function MidArc

recipes/Python/577405_Penrose_Tiler/recipe-577405.py:63–72  ·  view source on GitHub ↗
(p1, p2, p0, nR)

Source from the content-addressed store, hash-verified

61 return [midx,midy]
62
63def MidArc(p1, p2, p0, nR):
64 x0 = p0[0]
65 y0 = p0[1]
66 x1 = p1[0]
67 y1 = p1[1]
68 x2 = p2[0]
69 y2 = p2[1]
70 midx = (x1 + x2) / 2
71 midy = (y1 + y2) / 2
72 return Scalar(midx, midy, nR, x0, y0)
73
74def Perimeter(aP, lComplete = False):
75 points = []

Callers 4

redArcMethod · 0.85
blueArcMethod · 0.85
redArcMethod · 0.85
blueArcMethod · 0.85

Calls 1

ScalarFunction · 0.85

Tested by

no test coverage detected