ShopToolsUtilConvertRange Method

Convert from one numeric range to another.

Definition

Namespace: ShopTools
Assembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
C#
public static float ConvertRange(
	float value,
	float fromMin,
	float fromMax,
	float toMin,
	float toMax
)

Parameters

value  Single
The value to convert.
fromMin  Single
Original range minimum limit.
fromMax  Single
Original range maximum limit.
toMin  Single
New range minimum limit.
toMax  Single
New range maximum limit.

Return Value

Single
Specified value, converted to the new range.

See Also