Beispiel #1
0
 /// <summary>
 /// Adds a vector and 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 sum.</returns>
 public static Vector4F operator +(float s, Vector4F v)
 {
     return(Vector4F.Add(v, s));
 }
Beispiel #2
0
 /// <summary>
 /// Adds a vector and 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 sum.</returns>
 public static Vector4F operator +(float scalar, Vector4F vector)
 {
     return(Vector4F.Add(vector, scalar));
 }
Beispiel #3
0
 /// <summary>
 /// Adds two vectors.
 /// </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 sum.</returns>
 public static Vector4F operator +(Vector4F u, Vector4F v)
 {
     return(Vector4F.Add(u, v));
 }
Beispiel #4
0
 /// <summary>
 /// Adds two vectors.
 /// </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 sum.</returns>
 public static Vector4F operator +(Vector4F left, Vector4F right)
 {
     return(Vector4F.Add(left, right));
 }