|
1 registered members (TipmyPip),
18,449
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
What is vec_lerp?
#11683
01/28/03 04:28
01/28/03 04:28
|
Joined: Jul 2000
Posts: 1,570 Windsor, CT 06095
WildCat
OP
Expert
|
OP
Expert
Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
|
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
Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!
|
|
|
Re: What is vec_lerp?
#11684
01/30/03 23:43
01/30/03 23:43
|
Joined: Jul 2000
Posts: 1,570 Windsor, CT 06095
WildCat
OP
Expert
|
OP
Expert
Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
|
Doug, Jcl? Anyone?
I know this function wouldn't have made it into the engine if it did not add some value...
Where would this function be useful?
- WildCat
Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!
|
|
|
Re: What is vec_lerp?
#11687
01/31/03 23:59
01/31/03 23:59
|
Joined: Jul 2000
Posts: 1,570 Windsor, CT 06095
WildCat
OP
Expert
|
OP
Expert
Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
|
Hmmm...
Thanks guys. That got the wheels turning. If I come up with something interesting, I'll let you know!
- WildCat
Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!
|
|
|
|
|
|