Help Icon
Search Results for

    Show / Hide Table of Contents

    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
    object
    Complex
    Implements
    IComplex
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OmicronLab.VectorNetworkAnalysis.AutomationInterface.DataTypes
    Assembly: OmicronLab.VectorNetworkAnalysis.AutomationInterface.dll
    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
    double real

    The real value.

    double imaginary

    The imaginary value.

    Properties

    Imaginary

    Gets the imaginary part of the complex value.

    Declaration
    public double Imaginary { get; }
    Property Value
    Type Description
    double

    The imaginary part.

    Magnitude

    Gets the linear magnitude value.

    Declaration
    public double Magnitude { get; }
    Property Value
    Type Description
    double

    The Linear magnitude.

    MagnitudeDB

    Gets the magnitude value in dB.

    Declaration
    public double MagnitudeDB { get; }
    Property Value
    Type Description
    double

    The magnitude in dB.

    Phase

    Gets the phase value.

    Declaration
    public double Phase { get; }
    Property Value
    Type Description
    double

    The phase.

    Real

    Gets the real part of the complex value.

    Declaration
    public double Real { get; }
    Property Value
    Type Description
    double

    The real part.

    Operators

    implicit operator Complex(Complex)

    Declaration
    public static implicit operator Complex(Complex complex)
    Parameters
    Type Name Description
    Complex complex

    The complex.

    Returns
    Type Description
    Complex

    The result of the conversion.

    implicit operator Complex(Complex)

    Declaration
    public static implicit operator Complex(Complex complex)
    Parameters
    Type Name Description
    Complex complex

    The System.Numerics.Complex.

    Returns
    Type Description
    Complex

    The result of the conversion.

    Implements

    IComplex
    In this article
    Back to top Generated by DocFX