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