AForge.Math.Complex.Negate C# (CSharp) Method

Negate() public static method

Negates a complex number.
public static Negate ( Complex a ) : Complex
a Complex A instance.
return Complex
        public static Complex Negate(Complex a)
        {
            return new Complex(-a.Re, -a.Im);
        }

Usage Example

Beispiel #1
0
 /// <summary>
 /// Negates the complex number.
 /// </summary>
 ///
 /// <param name="a">A <see cref="Complex"/>  instance.</param>
 ///
 /// <returns>Returns new <see cref="Complex"/> instance containing the negated values.</returns>
 ///
 public static Complex operator -(Complex a)
 {
     return(Complex.Negate(a));
 }