コード例 #1
0
ファイル: Vector4F.cs プロジェクト: ekampf/Sharp3D.Math
 /// <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));
 }
コード例 #2
0
ファイル: Vector4F.cs プロジェクト: ekampf/Sharp3D.Math
 /// <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));
 }
コード例 #3
0
ファイル: Vector4F.cs プロジェクト: ekampf/Sharp3D.Math
 /// <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));
 }
コード例 #4
0
ファイル: Vector4F.cs プロジェクト: ddanninger/PLMPack
 /// <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));
 }
コード例 #5
0
ファイル: Vector4F.cs プロジェクト: ddanninger/PLMPack
 /// <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));
 }
コード例 #6
0
ファイル: Vector4F.cs プロジェクト: ddanninger/PLMPack
 /// <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));
 }