mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
lerp operator order switched
This commit is contained in:
parent
0bd63e08c2
commit
b9a2b0648d
@ -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 """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user