Click or drag to resize

Complex Structure

Structure which represents a complex value.

Namespace:  AGI.Foundation.Coordinates
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 18.4.397.0 (18.4.397.0)
Syntax
public struct Complex : IEquatable<Complex>

The Complex type exposes the following members.

Constructors
  NameDescription
Public methodComplex(Double)
Initializes a new instance with only the real component. The imaginary component defaults to 0.
Public methodComplex(Double, Double)
Initializes a new instance with real and imaginary components.
Top
Properties
  NameDescription
Public propertyImaginary
Gets the imaginary component of the complex number.
Public propertyMagnitude
Gets the magnitude of the complex number.
Public propertyPhase
Gets the phase of the complex number.
Public propertyReal
Gets the real component of the complex number.
Top
Methods
  NameDescription
Public methodStatic memberAbs
Compute the absolute value and returns the result.
Public methodStatic memberAdd
Adds two complex numbers and returns the result.
Public methodStatic memberConjugate
Computes the conjugate for a complex number and returns the result.
Public methodStatic memberDivide
Divides one complex number by another and returns the result.
Public methodEquals(Object)
Indicates whether another object is exactly equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Complex)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodStatic memberExp
Returns e raised to the specified power.
Public methodGetHashCode
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodStatic memberMultiply
Returns the product of two complex numbers.
Public methodStatic memberSubtract
Subtracts two complex numbers and returns the result.
Public methodToString
Returns a string which represents the complex number.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two complex numbers and returns the result.
Public operatorStatic memberDivision(Complex, Complex)
Divides one complex number by another and returns the result.
Public operatorStatic memberDivision(Complex, Double)
Divides one complex number by a scalar and returns the result.
Public operatorStatic memberEquality
Returns if the two instances are exactly equal.
Public operatorStatic member(Double to Complex)
Implicit conversion from double to complex number.
Public operatorStatic memberInequality
Returns if the two instances are not exactly equal.
Public operatorStatic memberMultiply
Returns the product of two complex numbers.
Public operatorStatic memberSubtraction
Subtracts two complex numbers and returns the result.
Public operatorStatic memberUnaryNegation
Negates the Complex value.
Top
See Also