lerp operator order switched

This commit is contained in:
Josh Wilson 2006-09-26 22:50:12 +00:00
parent 0bd63e08c2
commit b9a2b0648d

View File

@ -1459,7 +1459,7 @@ def lerp(v0, v1, t):
returns a value lerped between v0 and v1, according to t returns a value lerped between v0 and v1, according to t
t == 0 maps to v0, t == 1 maps to v1 t == 0 maps to v0, t == 1 maps to v1
""" """
return v0 + (t * (v1 - v0)) return v0 + ((v1 - v0) * t)
def average(*args): def average(*args):
""" returns simple average of list of values """ """ returns simple average of list of values """