public void Normalize() { float length = Length; //Cache for minor performance improvement X = X / length; Y = Y / length; }