Easing.

UnLerp(float, float, float) Method

Summary

Returns a normalized value indicating how far the `value` is between the `start` and `end`.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
Easing

Syntax

public static float UnLerp(float start, float end, float value)

Remarks

  • 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

Type Description
float