MathHelperUnLerp Method (Int32, Int32, Int32)

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 int UnLerp(
	int start,
	int end,
	int lerpedValue
)

Parameters

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

Return Value

Type: Int32
The lerp percentage.
See Also

Reference