Function vec3::inv_len [−][src]
pub fn inv_len<T>(v: &[T; 3]) -> T where
T: Real,
&'a T: Mul<&'b T, Output = T>,
Example
assert_eq!(vec3::inv_len::<f32>(&vec3::new_one()), 1_f32 / 3_f32.sqrt());
pub fn inv_len<T>(v: &[T; 3]) -> T where
T: Real,
&'a T: Mul<&'b T, Output = T>,
assert_eq!(vec3::inv_len::<f32>(&vec3::new_one()), 1_f32 / 3_f32.sqrt());