Пример #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));
 }
Пример #2
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));
 }