Function graphics::math::modular_offset

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

Computes modular offset safely for numbers.