Click or drag to resize

MathfInverseLerp Method

Returns a normalized value considering the given range. This is the opposite of Lerp(Single, Single, Single).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static float InverseLerp(
	float from,
	float to,
	float weight
)

Parameters

from
Type: SystemSingle
The interpolated value.
to
Type: SystemSingle
The destination value for interpolation.
weight
Type: SystemSingle
A value on the range of 0.0 to 1.0, representing the amount of interpolation.

Return Value

Type: Single
The resulting value of the inverse interpolation.
See Also