Profile image

what does inverselerp mean?

7,944 Jauntyccmbr  2.9 years ago

inverselerp(a, b, x) Calculates the linear parameter t that produces the interpolant value within the range [a, b].

what does this mean in layman's term??

  • Log in to leave a comment
  • Profile image
    2,357 ACEVIPER9710

    @edensk dude you are a lifesaver man

    1.2 years ago
  • Profile image
    16.4k edensk

    @Formula350 idk, you could use Yaw*inverselerp(10,0,GS) so that a steering wheel gradually turns less as speed increases

    +3 2.9 years ago
  • Profile image
    4,165 Formula350

    @edensk Forgive me, I have come down with a slight case of The Dumb, can you provide a couple examples where people may want to use this?
    (either as a replacement for everyday builds instead of a standard way of doing it, or also maybe even a fringe example that may not be used by many but provides insight into the range of applications it has...)

    2.9 years ago
  • Profile image
    16.4k edensk

    inverselerp(10,50,IAS)


    at 10 m/s and lower, the output will be 0.
    as IAS (the variable) increases above 10 m/s, the output will also increase proportionally.
    At 50 m/s and higher, the output will be 1.

    you can also flip the numbers ( inverselerp(50,10,IAS) ) so that it starts at 1 and ends at 0 as IAS increases

    2.9 years ago