Function glm::builtin::fmod [] [src]

pub fn fmod<F: BaseFloat, T: GenFloat<F>>(x: T, y: T) -> T

Modulus. Returns x – y ∗ floor(x/y).

Note

Original function name mod is renamed to fmod because mod is a keyword in Rust.

Example

assert_eq!(glm::fmod(3.5_f32, 3.), 0.5);