Function glm::builtin::max_s [] [src]

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

A variant of max that always uses a scalar value as the comparator.

Note

max_s is not a GLSL function name. It is introduced because Rust does not support function name overloading.

Example

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