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