Summary
Re-scales `value` from the old range (`oldMin` to `oldMax`) to the new range (`newMin` to `newMax`) and
clamps it within that range.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- WeaverUtilities
Syntax
public static float LinearRescaleClamped(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 |