WeaverUtilities.

LinearRescale(float, float, float, float, float) Method

Summary

Re-scales `value` from the old range (`oldMin` to `oldMax`) to the new range (`newMin` to `newMax`).
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
WeaverUtilities

Syntax

public static float LinearRescale(this float value, float oldMin, float oldmax, float newMin, float newmax)

Parameters

Name Type Description
value float
oldMin float
oldmax float
newMin float
newmax float

Return Value

Type Description
float