• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Vim.Math3d
    • AABox
    • AABox2D
    • AABox4D
    • AngularMotion
    • AxisAngle
    • Byte2
    • Byte3
    • Byte4
    • ColorHDR
    • ColorRGB
    • ColorRGBA
    • Complex
    • Constants
    • ContainmentType
    • CylindricalCoordinate
    • DAABox
    • DAABox2D
    • DAABox4D
    • DInterval
    • DPlane
    • DQuaternion
    • DRay
    • DSphere
    • DVector2
    • DVector3
    • DVector4
    • Euler
    • GeoCoordinate
    • Hash
    • HorizontalCoordinate
    • IMappable<TContainer, TPart>
    • Int2
    • Int3
    • Int4
    • Interval
    • IPoints
    • IPoints2D
    • ITransformable3D<TSelf>
    • Line
    • Line2D
    • LinearMotion
    • LinqUtil
    • LogPolarCoordinate
    • MathOps
    • Matrix4x4
    • Motion
    • MovementExtensions
    • Plane
    • PlaneIntersectionType
    • PolarCoordinate
    • Quad
    • Quad2D
    • Quaternion
    • Ray
    • Sphere
    • SphericalCoordinate
    • StatelessRandom
    • Stats<T>
    • Transform
    • Transformable3D
    • Triangle
    • Triangle2D
    • Vector2
    • Vector3
    • Vector4

Struct Complex

Implements
System.IEquatable<Complex>
System.IComparable<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 Source

Complex(Double)

public Complex(double value)
View Source

Complex(Double, Double)

public Complex(double real, double imaginary)
View Source

Complex((Double real, Double imaginary))

public Complex((double real, double imaginary) tuple)

Fields

View Source

Imaginary

[DataMember]
public readonly double Imaginary
View Source

MaxValue

public static Complex MaxValue
View Source

MinValue

public static Complex MinValue
View Source

NumComponents

public const int NumComponents = 2
View Source

One

public static Complex One
View Source

Real

[DataMember]
public readonly double Real
View Source

UnitImaginary

public static Complex UnitImaginary
View Source

UnitReal

public static Complex UnitReal
View Source

Zero

public static Complex Zero

Methods

View Source

AlmostEquals(Complex, Single)

public readonly bool AlmostEquals(Complex x, float tolerance = 1E-07F)
View Source

AlmostZero(Single)

public readonly bool AlmostZero(float tolerance = 1E-07F)
View Source

AnyComponentNegative()

public readonly bool AnyComponentNegative()
View Source

CompareTo(Complex)

public readonly int CompareTo(Complex x)
View Source

Create(Double, Double)

public static Complex Create(double real, double imaginary)
View Source

Create((Double real, Double imaginary))

public static Complex Create((double real, double imaginary) tuple)
View Source

Deconstruct(out Double, out Double)

public readonly void Deconstruct(out double real, out double imaginary)
View Source

Dot(Complex)

public readonly double Dot(Complex value)
View Source

Dot(Complex, Complex)

public static double Dot(Complex value1, Complex value2)
View Source

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)
View Source

GetComponent(Int32)

public readonly double GetComponent(int n)
View Source

GetHashCode()

public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source

IsInfinity()

public readonly bool IsInfinity()
View Source

IsNaN()

public readonly bool IsNaN()
View Source

Magnitude()

public readonly double Magnitude()
View Source

MagnitudeSquared()

public readonly double MagnitudeSquared()
View Source

MaxComponent()

public readonly double MaxComponent()
View Source

MinComponent()

public readonly double MinComponent()
View Source

ProductComponents()

public readonly double ProductComponents()
View Source

SetImaginary(Double)

public readonly Complex SetImaginary(double x)
View Source

SetReal(Double)

public readonly Complex SetReal(double x)
View Source

SumComponents()

public readonly double SumComponents()
View Source

SumSqrComponents()

public readonly double SumSqrComponents()
View Source

ToString()

public override readonly string ToString()
Overrides
System.ValueType.ToString()

Operators

View Source

Addition(Double, Complex)

public static Complex operator +(double value1, Complex value2)
View Source

Addition(Complex, Double)

public static Complex operator +(Complex value1, double value2)
View Source

Addition(Complex, Complex)

public static Complex operator +(Complex value1, Complex value2)
View Source

Division(Double, Complex)

public static Complex operator /(double value1, Complex value2)
View Source

Division(Complex, Double)

public static Complex operator /(Complex value1, double value2)
View Source

Division(Complex, Complex)

public static Complex operator /(Complex value1, Complex value2)
View Source

Equality(Complex, Complex)

public static bool operator ==(Complex x0, Complex x1)
View Source

GreaterThan(Complex, Complex)

public static bool operator>(Complex x0, Complex x1)
View Source

GreaterThanOrEqual(Complex, Complex)

public static bool operator >=(Complex x0, Complex x1)
View Source

Implicit((Double real, Double imaginary) to Complex)

public static implicit operator Complex((double real, double imaginary) tuple)
View Source

Implicit(Complex to (Double real, Double imaginary))

public static implicit operator (double real, double imaginary)(Complex self)
View Source

Inequality(Complex, Complex)

public static bool operator !=(Complex x0, Complex x1)
View Source

LessThan(Complex, Complex)

public static bool operator <(Complex x0, Complex x1)
View Source

LessThanOrEqual(Complex, Complex)

public static bool operator <=(Complex x0, Complex x1)
View Source

Multiply(Double, Complex)

public static Complex operator *(double value1, Complex value2)
View Source

Multiply(Complex, Double)

public static Complex operator *(Complex value1, double value2)
View Source

Multiply(Complex, Complex)

public static Complex operator *(Complex value1, Complex value2)
View Source

Subtraction(Double, Complex)

public static Complex operator -(double value1, Complex value2)
View Source

Subtraction(Complex, Double)

public static Complex operator -(Complex value1, double value2)
View Source

Subtraction(Complex, Complex)

public static Complex operator -(Complex value1, Complex value2)
View Source

UnaryNegation(Complex)

public static Complex operator -(Complex value)

Implements

System.IEquatable<T>
System.IComparable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright VIM 2021, Generated by DocFX