Posted By: WildCat
What is vec_lerp? - 01/28/03 04:28
I see in the latest Beta doc that a new vector function is coming:
vec_lerp(vec v,vec v1,vec v2,var f)
interpolates the vector v between v1 and v2 according to the factor f.
Formula:
v = (1-f)*v1 + f*v2
Can someone explain to me what this is and in what context it can be used?
A *tiny* code example would be wonderful...
Thanks!
-WildCat
vec_lerp(vec v,vec v1,vec v2,var f)
interpolates the vector v between v1 and v2 according to the factor f.
Formula:
v = (1-f)*v1 + f*v2
Can someone explain to me what this is and in what context it can be used?
A *tiny* code example would be wonderful...
Thanks!
-WildCat