MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ denormalize()

template<typename T >
constexpr T MayaFlux::Kinesis::denormalize ( t,
lo,
hi 
)
constexprnoexcept

Denormalize t from [0, 1] to [lo, hi].

Equivalent to glm::mix(lo, hi, t) but named for legibility at call sites where the intent is range reconstruction rather than interpolation.

Definition at line 61 of file Scalar.hpp.

62{
63 return lo + t * (hi - lo);
64}