Class Complex
This class is used to expose the System.Numerics.Complex class to COM. Is is direct castable to into/from a System.Numerics.Complex type.
Inheritance
System.Object
Complex
Namespace: OmicronLab.MaterialAnalyzer.AutomationInterface.DataTypes
Assembly: OmicronLab.MaterialAnalyzer.AutomationInterface.dll (1.60.627.0)
Syntax
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 value from the complex value.
Declaration
public double Imaginary { get; }
Property Value
Type | Description |
---|---|
System.Double | The imaginary value. |
Magnitude
Gets the magnitude.
Declaration
public double Magnitude { get; }
Property Value
Type | Description |
---|---|
System.Double | The magnitude. |
MagnitudeDB
Gets the magnitude in DB.
Declaration
public double MagnitudeDB { get; }
Property Value
Type | Description |
---|---|
System.Double | The magnitude in DB. |
Phase
Gets the phase in radiand.
Declaration
public double Phase { get; }
Property Value
Type | Description |
---|---|
System.Double | The phase in radians. |
Real
Gets the real value from the complex value.
Declaration
public double Real { get; }
Property Value
Type | Description |
---|---|
System.Double | The real value. |
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. |