DoubleRange.InverseLerp

Method in DoubleRange

Declaration

public double InverseLerp(double value)

Description

Calculates the linear parameter t that produces the interpolant value within the range.

Parameters

valueThe value within the range you want to calculate.

Returns

doubleThe interpolant value between [0..1].