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

◆ snap() [1/2]

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

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

Definition at line 270 of file Scalar.hpp.

271{
272 return std::clamp(snap(x, step), lo, hi);
273}
T snap(T x, T step) noexcept
Round x to the nearest multiple of step.
Definition Scalar.hpp:259

References snap().

+ Here is the call graph for this function: