Function quat::w[][src]

pub fn w<'out, T>(out: &'out mut [T; 4], q: &[T; 4]) -> &'out mut [T; 4] where
    T: Real,
    &'a T: Mul<&'b T, Output = T>, 

Example

let mut v = [0_f32; 4];
quat::w(&mut v, &[1_f32; 4]);
assert_eq!(v, [1_f32, 1_f32, 1_f32, 2_f32.sqrt()]);