Function glm::builtin::min [] [src]

pub fn min<S: BaseNum, T: GenNum<S>>(x: T, y: T) -> T

Returns y if y < x, otherwise it returns x.

Example

let v1 = glm::vec2(1., 4.);
let v2 = glm::vec2(2., 3.);
assert_eq!(glm::min(v1, v2), glm::vec2(1., 3.));