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