示例#1
0
 /// <summary>
 /// Adds a complex number and a scalar.
 /// </summary>
 /// <param name="a">A <see cref="ComplexF"/> instance.</param>
 /// <param name="s">A scalar.</param>
 /// <returns>A new <see cref="ComplexF"/> instance containing the sum.</returns>
 public static ComplexF operator +(float s, ComplexF a)
 {
     return(ComplexF.Add(a, s));
 }
示例#2
0
 /// <summary>
 /// Adds two complex numbers.
 /// </summary>
 /// <param name="a">A <see cref="ComplexF"/> instance.</param>
 /// <param name="b">A <see cref="ComplexF"/> instance.</param>
 /// <returns>A new <see cref="ComplexF"/> instance containing the sum.</returns>
 public static ComplexF operator +(ComplexF a, ComplexF b)
 {
     return(ComplexF.Add(a, b));
 }