|
static |
Maps the given value belonging to the old interval to the corresponding value in the new interval.
Optionally, old values whose mapped new values are lying outside of the new interval are clamped accordingly.
If oldMin and oldMax are equal and the oldValue cannot be clamped, then this method returns float.PositiveInfinity.
newMin | Minimum of the new interval. |
newMax | Maximum of the new interval. |
oldMin | Minimum of the old interval. |
oldMax | Maximum of the old interval. |
oldValue | The value which is mapped from the old to the new interval. |
clamp | Determines if the value is getting clamped. |