Function vec2::min [−][src]
pub fn min<'out, T>(
out: &'out mut [T; 2],
a: &[T; 2],
b: &[T; 2]
) -> &'out mut [T; 2] where
T: Clone + PartialOrd,
Example
let mut v = vec2::new_zero::<f32>(); vec2::min(&mut v, &vec2::new_zero(), &vec2::new_one()); assert_eq!(v, vec2::new_zero());