Function vec2::len_values_sq [−][src]
pub fn len_values_sq<T>(x: &T, y: &T) -> T where
T: Add<T, Output = T>,
&'a T: Mul<&'b T, Output = T>,
Example
assert_eq!(vec2::len_values_sq(&1_f32, &1_f32), 2_f32);
pub fn len_values_sq<T>(x: &T, y: &T) -> T where
T: Add<T, Output = T>,
&'a T: Mul<&'b T, Output = T>,
assert_eq!(vec2::len_values_sq(&1_f32, &1_f32), 2_f32);