Function glm::builtin::max [] [src]

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

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

Example

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