Summary
Re-scales `value` from the old range (`oldMin` to `oldMax`) to the new range (`newMin` to `newMax`).
- Assembly
- Kybernetik
.InspectorGadgets .dll - Namespace
- InspectorGadgets
- Containing Type
- IGUtils
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 |