MCPcopy Create free account
hub / github.com/pyscript/pyscript / interpolate

Function interpolate

core/tests/manual/issue-2302/worker.py:66–69  ·  view source on GitHub ↗
(sq_threshold, v1, v2)

Source from the content-addressed store, hash-verified

64 height_map[neg_i] = (1.0 - weight) * old_neg + weight * old_pos
65
66def interpolate(sq_threshold, v1, v2):
67 if v1 == v2:
68 return v1
69 return (sq_threshold - v1) / (v2 - v1)
70
71stats = {'maxx': 0, 'maxy': 0, 'minx': 0, 'miny': 0}
72def append_p(lines, p1, p2):

Callers 1

marching_squaresFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected