Fits value x
from closed interval [a,b] to closed interval [c,d]. No clamping performed.
Inline function. Fits value a
in [0..1] interval to new interval [b..c]. No clamping performed. Same as mix(b, c, a)
-
-
-
Inline function. Fits value x
in [0..1] interval to [-1..+1] interval. No clamping performed.
-
Inline function. Fits value x
in [-1..+1] interval to [0..1] interval. No clamping performed.
-
Same as fit, but first clamps x
to closed [a,b] interval.
Generated using TypeDoc
Returns normalized value of
x
WRT to interval [a,b]. Returns 0, ifa
equalsb
.-
-
-