/// <summary> /// Converts the vector into a unit vector. /// </summary> /// <param name="value">The vector to normalize.</param> /// <returns>The normalized vector.</returns> public static Vector4D Normalize(Vector4D value) { value.Normalize(); return value; }
/// <summary> /// Converts the vector into a unit vector. /// </summary> /// <param name="value">The vector to normalize.</param> /// <param name="result">When the method completes, contains the normalized vector.</param> public static void Normalize(ref Vector4D value, out Vector4D result) { Vector4D temp = value; result = temp; result.Normalize(); }