pub fn mag<T: Float, V: VecFloatOps<T>>(a: V) -> T
returns the scalar magnitude or length of vector a
a