[][src]Function pbrt::core::pbrt::mod_t

pub fn mod_t<T>(a: T, b: T) -> T where
    T: Zero + Copy + PartialOrd + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T>, 

Computes the remainder of a/b. Provides the behavior that the modulus of a negative number is always positive.