Function glm::builtin::min_s [] [src]

pub fn min_s<S: BaseNum, T: GenNumVec<S>>(x: T, y: S) -> T

A variant of function min that uses a scalar value as comparator.

Note

mod_s is not a GLSL function name.

Example

let v = glm::vec2(1., 3.);
let y = 2_f32;
assert_eq!(glm::min_s(v, y), glm::vec2(1., 2.));