Class Complex
This class is used to expose the System.Numerics.Complex class to COM. Is direct castable to into/from a System.Numerics.Complex type.
Inheritance
System.Object
Complex
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: OmicronLab.VectorNetworkAnalysis.AutomationInterface.DataTypes
Assembly: OmicronLab.VectorNetworkAnalysis.AutomationInterface.dll (3.50.2911.0)
Syntax
[Guid("F978B015-E1CA-4549-BE0A-8BFACE7DB680")]
[ClassInterface(ClassInterfaceType.None)]
[ComVisible(true)]
public class Complex : IComplex
Constructors
Complex(Double, Double)
Initializes a new instance of the Complex class.
Declaration
public Complex(double real, double imaginary)
Parameters
Type | Name | Description |
---|---|---|
System.Double | real | The real value. |
System.Double | imaginary | The imaginary value. |
Properties
Imaginary
Gets the imaginary part of the complex value.
Declaration
public double Imaginary { get; }
Property Value
Type | Description |
---|---|
System.Double | The imaginary part. |
Magnitude
Gets the linear magnitude value.
Declaration
public double Magnitude { get; }
Property Value
Type | Description |
---|---|
System.Double | The Linear magnitude. |
MagnitudeDB
Gets the magnitude value in dB.
Declaration
public double MagnitudeDB { get; }
Property Value
Type | Description |
---|---|
System.Double | The magnitude in dB. |
Phase
Gets the phase value.
Declaration
public double Phase { get; }
Property Value
Type | Description |
---|---|
System.Double | The phase. |
Real
Gets the real part of the complex value.
Declaration
public double Real { get; }
Property Value
Type | Description |
---|---|
System.Double | The real part. |
Operators
Implicit(Complex to Complex)
Declaration
public static implicit operator Complex(Complex complex)
Parameters
Type | Name | Description |
---|---|---|
Complex | complex | The complex. |
Returns
Type | Description |
---|---|
System.Numerics.Complex | The result of the conversion. |
Implicit(Complex to Complex)
Declaration
public static implicit operator Complex(Complex complex)
Parameters
Type | Name | Description |
---|---|---|
System.Numerics.Complex | complex | The System.Numerics.Complex. |
Returns
Type | Description |
---|---|
Complex | The result of the conversion. |