MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / addExtraPoints

Method addExtraPoints

graphs/data/base/getter.py:49–57  ·  view source on GitHub ↗
(x1, y1, x2, y2, depth)

Source from the content-addressed store, hash-verified

47 commonData = self._getCommonData(miscParams=miscParams, src=src, tgt=tgt)
48
49 def addExtraPoints(x1, y1, x2, y2, depth):
50 if depth <= 0 or y1 == y2:
51 return
52 newX = (x1 + x2) / 2
53 newY = self._calculatePoint(x=newX, miscParams=miscParams, src=src, tgt=tgt, commonData=commonData)
54 addExtraPoints(x1=prevX, y1=prevY, x2=newX, y2=newY, depth=depth - 1)
55 xs.append(newX)
56 ys.append(newY)
57 addExtraPoints(x1=newX, y1=newY, x2=x2, y2=y2, depth=depth - 1)
58
59 prevX = None
60 prevY = None

Callers

nothing calls this directly

Calls 2

_calculatePointMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected