bettercmath.valuerange

Inclusive scalar value ranges for interpolating and remapping values.

Members

Functions

remap
T remap(T value, T inputStart, T inputEnd, T outputStart, T outputEnd)

Remap value from the range [inputStart, inputEnd] to [outputStart, outputEnd].

remap
T remap(T value, ValueRange!T input, ValueRange!T output)

Remap value from the input range to output range.

Structs

ValueRange
struct ValueRange(T)

Range of scalar values, for more easily interpolating and remapping them.

Meta