Function graphics::math::modular_offset [−] [src]

pub fn modular_offset<T: Add<Output=T> + Rem<Output=T> + Copy>(n: &T, i: &T, off: &T) -> T

Computes modular offset safely for numbers.