Function rust_pathtracer::prelude::wrap
source · pub fn wrap<T>(val: T, min: T, max: T) -> Twhere
T: Copy + PartialOrd<T> + ClosedAdd<T> + ClosedSub<T>,Expand description
Wraps val into the range [min, max] using modular arithmetics.
The range must not be empty.