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

Function lerp

core/tests/manual/issue-2302/perlin_py.py:64–65  ·  view source on GitHub ↗
(a, b, t)

Source from the content-addressed store, hash-verified

62 return t * t * t * (t * (t * 6 - 15) + 10)
63
64def lerp(a, b, t):
65 return (1 - t) * a + t * b
66
67def perlin3(x, y, z):
68 # grid cells

Callers 1

perlin3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected