Struct Complex
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Vim.Math3d
Assembly: Vim.Math3D.dll
[DataContract]
public readonly struct Complex : IEquatable<Complex>, IComparable<Complex>
Constructors
View SourceComplex(Double)
public Complex(double value)
Complex(Double, Double)
public Complex(double real, double imaginary)
Complex((Double real, Double imaginary))
public Complex((double real, double imaginary) tuple)
Fields
View SourceImaginary
[DataMember]
public readonly double Imaginary
MaxValue
public static Complex MaxValue
MinValue
public static Complex MinValue
NumComponents
public const int NumComponents = 2
One
public static Complex One
Real
[DataMember]
public readonly double Real
UnitImaginary
public static Complex UnitImaginary
UnitReal
public static Complex UnitReal
Zero
public static Complex Zero
Methods
View SourceAlmostEquals(Complex, Single)
public readonly bool AlmostEquals(Complex x, float tolerance = 1E-07F)
AlmostZero(Single)
public readonly bool AlmostZero(float tolerance = 1E-07F)
AnyComponentNegative()
public readonly bool AnyComponentNegative()
CompareTo(Complex)
public readonly int CompareTo(Complex x)
Create(Double, Double)
public static Complex Create(double real, double imaginary)
Create((Double real, Double imaginary))
public static Complex Create((double real, double imaginary) tuple)
Deconstruct(out Double, out Double)
public readonly void Deconstruct(out double real, out double imaginary)
Dot(Complex)
public readonly double Dot(Complex value)
Dot(Complex, Complex)
public static double Dot(Complex value1, Complex value2)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Complex)
public readonly bool Equals(Complex x)
GetComponent(Int32)
public readonly double GetComponent(int n)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
IsInfinity()
public readonly bool IsInfinity()
IsNaN()
public readonly bool IsNaN()
Magnitude()
public readonly double Magnitude()
MagnitudeSquared()
public readonly double MagnitudeSquared()
MaxComponent()
public readonly double MaxComponent()
MinComponent()
public readonly double MinComponent()
ProductComponents()
public readonly double ProductComponents()
SetImaginary(Double)
public readonly Complex SetImaginary(double x)
SetReal(Double)
public readonly Complex SetReal(double x)
SumComponents()
public readonly double SumComponents()
SumSqrComponents()
public readonly double SumSqrComponents()
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
Operators
View SourceAddition(Double, Complex)
public static Complex operator +(double value1, Complex value2)
Addition(Complex, Double)
public static Complex operator +(Complex value1, double value2)
Addition(Complex, Complex)
public static Complex operator +(Complex value1, Complex value2)
Division(Double, Complex)
public static Complex operator /(double value1, Complex value2)
Division(Complex, Double)
public static Complex operator /(Complex value1, double value2)
Division(Complex, Complex)
public static Complex operator /(Complex value1, Complex value2)
Equality(Complex, Complex)
public static bool operator ==(Complex x0, Complex x1)
GreaterThan(Complex, Complex)
public static bool operator>(Complex x0, Complex x1)
GreaterThanOrEqual(Complex, Complex)
public static bool operator >=(Complex x0, Complex x1)
Implicit((Double real, Double imaginary) to Complex)
public static implicit operator Complex((double real, double imaginary) tuple)
Implicit(Complex to (Double real, Double imaginary))
public static implicit operator (double real, double imaginary)(Complex self)
Inequality(Complex, Complex)
public static bool operator !=(Complex x0, Complex x1)
LessThan(Complex, Complex)
public static bool operator <(Complex x0, Complex x1)
LessThanOrEqual(Complex, Complex)
public static bool operator <=(Complex x0, Complex x1)
Multiply(Double, Complex)
public static Complex operator *(double value1, Complex value2)
Multiply(Complex, Double)
public static Complex operator *(Complex value1, double value2)
Multiply(Complex, Complex)
public static Complex operator *(Complex value1, Complex value2)
Subtraction(Double, Complex)
public static Complex operator -(double value1, Complex value2)
Subtraction(Complex, Double)
public static Complex operator -(Complex value1, double value2)
Subtraction(Complex, Complex)
public static Complex operator -(Complex value1, Complex value2)
UnaryNegation(Complex)
public static Complex operator -(Complex value)
Implements
System.IEquatable<T>
System.IComparable<T>