Summary
Returns a normalized value indicating how far the `value` is between the `start` and `end`.
Syntax
public static float UnLerp(float start, float end, float value)
- value = start returns 0.
- value = (start + end) / 2 returns 0.5.
- value = end returns 1.
- start = end returns 0.
This method is like
UnityEngine.Mathf.InverseLerp(System.Single,System.Single,System.Single)
except that it doesn't clamp the result between 0 and 1.
Parameters
Name |
Type |
Description |
start |
float |
|
end |
float |
|
value |
float |
|
Return Value