pub fn normalize(v: Vec2) -> Vec2
Convert a vector into a unit vector if possible, otherwise returns the zero vector.