Hello,
do the VEX-Functions lerp() and fit01() do exactly the same, or is there some difference I dind't notice?
In my tests lerp(min,max,var) is the same result as fit01(var,min,max) (which seems logical to me), so is there any benefit in them both existing?
Or are there also other Functions which behave identical?
Is lerp() identical to fit01()?
745 3 1- freewind
- Member
- 88 posts
- Joined: Sept. 2021
- Offline
- BabaJ
- Member
- 2041 posts
- Joined: Sept. 2015
- Offline
- tamte
- Member
- 8555 posts
- Joined: July 2007
- Offline
fit01() is clamped, lerp() is not so it's more like efit01() if that one existed
But regardless, it would be stranger if there was only fit(), fit11() but then you had to know that if the input is 0-1 range you'd have to use lerp()
(as that's standard function in many languages so that one would most likely exist) so fit01 makes sense for completeness anyway
But regardless, it would be stranger if there was only fit(), fit11() but then you had to know that if the input is 0-1 range you'd have to use lerp()
(as that's standard function in many languages so that one would most likely exist) so fit01 makes sense for completeness anyway
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- freewind
- Member
- 88 posts
- Joined: Sept. 2021
- Offline
-
- Quick Links