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