/// <summary> /// Subtracts a scalar from a vector. /// </summary> /// <param name="v">A <see cref="Vector4D"/> instance.</param> /// <param name="s">A scalar.</param> /// <returns>A new <see cref="Vector4D"/> instance containing the difference.</returns> /// <remarks> /// result[i] = v[i] - s /// </remarks> public static Vector4D operator-(Vector4D v, double s) { return(Vector4D.Subtract(v, s)); }
/// <summary> /// Subtracts a vector from a scalar. /// </summary> /// <param name="v">A <see cref="Vector4D"/> instance.</param> /// <param name="s">A scalar.</param> /// <returns>A new <see cref="Vector4D"/> instance containing the difference.</returns> /// <remarks> /// result[i] = s - v[i] /// </remarks> public static Vector4D operator-(double s, Vector4D v) { return(Vector4D.Subtract(s, v)); }
/// <summary> /// Subtracts a vector from a vector. /// </summary> /// <param name="u">A <see cref="Vector4D"/> instance.</param> /// <param name="v">A <see cref="Vector4D"/> instance.</param> /// <returns>A new <see cref="Vector4D"/> instance containing the difference.</returns> /// <remarks> /// result[i] = v[i] - w[i]. /// </remarks> public static Vector4D operator-(Vector4D u, Vector4D v) { return(Vector4D.Subtract(u, v)); }