IGUtils.

LinearRescaleTo01(float, float, float) Method

Summary

Re-scales `value` from the old range (`oldMin` to `oldMax`) to the new range (0 to 1).
Assembly
Kybernetik.InspectorGadgets.dll
Namespace
InspectorGadgets
Containing Type
IGUtils

Syntax

public static float LinearRescaleTo01(this float value, float oldMin, float oldMax)

Parameters

Name Type Description
value float
oldMin float
oldMax float

Return Value

Type Description
float