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