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