logmap

Map the [0..1] range to [min..max] logarithmically.

nothrow @nogc pure
T
logmap
(
T
)
(
T t
,
T min
,
T max
)

Parameters

t T

Interpolating value from [0 to 1]. UB if out of range.

min T

Value corresponding to t = 0. Must be > 0.

max T

Value corresponding to t = 1. Must be > 0.

Note: You can totally have a max that is smaller than min. In this case, the range mapped with more accuracy will be small values (around max not min).

Meta