mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-22 22:24:35 +00:00
mathx.random_lerp calls mathx.lerp instead of math.lerp so it works without exported globals
fixes #41
This commit is contained in:
parent
6ce0dfa523
commit
4460a94933
@ -70,7 +70,7 @@ end
|
|||||||
|
|
||||||
--bilinear interpolation between 4 samples
|
--bilinear interpolation between 4 samples
|
||||||
function mathx.bilerp(a, b, c, d, u, v)
|
function mathx.bilerp(a, b, c, d, u, v)
|
||||||
return math.lerp(
|
return mathx.lerp(
|
||||||
math.lerp(a, b, u),
|
math.lerp(a, b, u),
|
||||||
math.lerp(c, d, u),
|
math.lerp(c, d, u),
|
||||||
v
|
v
|
||||||
|
Loading…
Reference in New Issue
Block a user