예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 /// <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));
 }
예제 #4
0
 /// <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));
 }
예제 #5
0
 /// <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));
 }
예제 #6
0
 /// <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));
 }