MathHelperUnLerp Method (Single, Single, Single)

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Gets the original percentage provided to Lerp, given the start, end and lerped value.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

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

Parameters

start
Type: SystemSingle
The start.
end
Type: SystemSingle
The end.
lerpedValue
Type: SystemSingle
The lerped value.

Return Value

Type: Single
The lerp percentage.
See Also

Reference