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

◆ snap() [1/2]

template<typename T >
T MayaFlux::Kinesis::snap ( x,
lo,
hi,
step 
)
inlinenoexcept

Snap x to the nearest multiple of step within [lo, hi].

Definition at line 187 of file Scalar.hpp.

188{
189 return std::clamp(snap(x, step), lo, hi);
190}
T snap(T x, T step) noexcept
Round x to the nearest multiple of step.
Definition Scalar.hpp:176

References snap().

+ Here is the call graph for this function: