pub fn normalize(a: Vec3) -> Vec3
Normalize a vector. Returns a zero vector if the input vector is very small.