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

Method _interpolateX

graphs/gui/canvasPanel.py:316–319  ·  view source on GitHub ↗
(x, x1, y1, x2, y2)

Source from the content-addressed store, hash-verified

314
315 @staticmethod
316 def _interpolateX(x, x1, y1, x2, y2):
317 pos = (x - x1) / (x2 - x1)
318 y = y1 + pos * (y2 - y1)
319 return y
320
321 @staticmethod
322 def __checkNumbers(xs, ys):

Callers 1

drawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected