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: 24.1.418.0 (24.1.418.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 propertyStatic memberImaginaryOne
Gets a Complex value of i.
Public propertyMagnitude
Gets the magnitude of the complex number.
Public propertyMagnitudeSquared
Gets the square of the magnitude of the complex number.
Public propertyStatic memberOne
Gets a Complex value of 1.
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 memberAcos
Calculates the arc cosine of the input value.
Public methodStatic memberAcosh
Calculates the inverse hyperbolic cosine of a value.
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 memberCos
Calculates the cosine of the input complex value.
Public methodStatic memberDivide
Divides one complex number by another and returns the result.
Public methodEquals(Complex)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodEquals(Object)
Indicates whether another object is exactly equal to this instance.
(Overrides ValueTypeEquals(Object).)
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 memberLog
Calculates the complex natural logarithm of the input value.
Public methodStatic memberMultiply
Returns the product of two complex numbers.
Public methodStatic memberPow
Calculates the complex square root of the input value.
Public methodStatic memberSign
Returns the sign of a complex value as either a -1 or +1. In the case of zero this function returns zero.
Public methodStatic memberSqrt
Calculates the complex square root of the input value.
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