Click or drag to resize

ComplexNumber Structure

Represents a complex number.
Inheritance Hierarchy
SystemObject
  SystemValueType
    GSFComplexNumber

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public struct ComplexNumber : IEquatable<ComplexNumber>
View Source

The ComplexNumber type exposes the following members.

Constructors
 NameDescription
Public methodComplexNumber(ComplexNumber) Creates a ComplexNumber from the given ComplexNumber.
Public methodComplexNumber(Angle, Double) Creates a ComplexNumber from the given polar values.
Public methodComplexNumber(Double, Double) Creates a ComplexNumber from the given rectangular values.
Top
Properties
 NameDescription
Public propertyAllAssigned Gets a boolean value indicating if each composite value of the ComplexNumber (i.e., real and imaginary) has been assigned a value.
Public propertyAngle Gets or sets the Angle (a.k.a. the argument) in radians of this ComplexNumber.
Public propertyConjugate Gets the complex conjugate of this ComplexNumber.
Public propertyImaginary Gets or sets the imaginary component of this ComplexNumber.
Public propertyMagnitude Gets or sets the magnitude (a.k.a. the modulus or absolute value) of this ComplexNumber.
Public propertyNoneAssigned Gets a boolean value indicating if each composite value of the ComplexNumber (i.e., real and imaginary) has not been assigned a value.
Public propertyReal Gets or sets the real component of this ComplexNumber.
Top
Methods
 NameDescription
Public methodEquals(ComplexNumber) Returns a value indicating whether this instance is equal to a specified ComplexNumber value.
Public methodEquals(Object) Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberParse Converts the string representation of a complex number to its complex number equivalent.
Public methodStatic memberPow Returns specified ComplexNumber raised to the specified power.
Public methodToString Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberAddition(ComplexNumber, ComplexNumber) Returns computed sum of values.
Public operatorStatic memberDivision(ComplexNumber, ComplexNumber) Returns computed division of values.
Public operatorStatic memberEquality(ComplexNumber, ComplexNumber) Compares the two values for equality.
Public operatorStatic memberExponent(ComplexNumber, Double) Returns result of first value raised to power of second value.
Public operatorStatic member(Complex to ComplexNumber) Implicitly converts a .NET Complex value to a ComplexNumber.
Public operatorStatic member(ComplexNumber to Complex) Implicitly converts a ComplexNumber to a .NET Complex value.
Public operatorStatic member(Double to ComplexNumber) Implicitly converts a Double to a ComplexNumber.
Public operatorStatic memberInequality(ComplexNumber, ComplexNumber) Compares the two values for inequality.
Public operatorStatic memberMultiply(ComplexNumber, ComplexNumber) Returns computed product of values.
Public operatorStatic memberSubtraction(ComplexNumber, ComplexNumber) Returns computed difference of values.
Public operatorStatic memberUnaryNegation(ComplexNumber) Returns the negated value.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also

Reference

GSF Namespace