bettercmath ~master (2021-10-22T22:55:25.7546802)
Dub
Repo
remap
bettercmath
valuerange
Remap
value
from the range [inputStart, inputEnd] to [outputStart, outputEnd].
T
remap
(T value, T inputStart, T inputEnd, T outputStart, T outputEnd)
T
remap
(
T
)
(
const
T
value
,
const
T
inputStart
,
const
T
inputEnd
,
const
T
outputStart
,
const
T
outputEnd
)
T
remap
(T value, ValueRange!T input, ValueRange!T output)
Meta
Source
See Implementation
bettercmath
valuerange
functions
remap
structs
ValueRange
Remap value from the range [inputStart, inputEnd] to [outputStart, outputEnd].