Function piston_window::math::modular_offset

source ยท
pub fn modular_offset<T>(n: &T, i: &T, off: &T) -> T
where T: Add<Output = T> + Rem<Output = T> + Copy,
Expand description

Computes modular offset safely for numbers.