Function piston_window::math::modular_offset
source · pub fn modular_offset<T>(n: &T, i: &T, off: &T) -> Twhere
T: Add<T, Output = T> + Rem<T, Output = T> + Copy,
Expand description
Computes modular offset safely for numbers.