Function vec2::set [−][src]
pub fn set<T>(out: &mut [T; 2], x: T, y: T) -> &mut [T; 2]
Example
let mut v = vec2::new_zero(); vec2::set(&mut v, 1, 1); assert_eq!(v, [1; 2]);
pub fn set<T>(out: &mut [T; 2], x: T, y: T) -> &mut [T; 2]
let mut v = vec2::new_zero(); vec2::set(&mut v, 1, 1); assert_eq!(v, [1; 2]);