DirectuX
29-12-2019, 23:30
According to the man page (https://www.thinbasic.com/public/products/thinBasic/help/html/lerp.htm), Lerp and Lerp2 have the same formula. What is the purpose of the second Lerp ?
ErosOlmi
30-12-2019, 03:46
Lerp function differ from Lerp2 function only for the sequence of the parameters.
The only script I'm aware where Lerp function is used is inside this great example:
https://www.thinbasic.com/community/showthread.php?11486-GimbalRock-demo-of-rotations-via-gimbals&highlight=GimbalRock
DirectuX
30-12-2019, 10:04
Lerp function differ from Lerp2 function only for the sequence of the parameters.
The only script I'm aware where Lerp function is used is inside this great example:
https://www.thinbasic.com/community/showthread.php?11486-GimbalRock-demo-of-rotations-via-gimbals&highlight=GimbalRock
I understand then, that Lerp2 exists for code readability convenience.
Thanks Eros.
PS, great example indeed.