• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Paramdigma.Core
    • Convert
    • Intersect3D
    • Intersect3D.LineLineIntersectionResult
    • Intersect3D.LineLineIntersectionStatus
    • Intersect3D.LinePlaneIntersectionStatus
    • Intersect3D.RayFacePerimeterIntersectionStatus
    • Settings
  • Paramdigma.Core.Collections
    • Interval
    • Matrix<T>
  • Paramdigma.Core.Curves
    • Geodesics
    • LevelSets
  • Paramdigma.Core.Exceptions
    • UnsetGeometryException
  • Paramdigma.Core.Extensions
    • Lists
  • Paramdigma.Core.Geometry
    • BaseCurve
    • BasePoint
    • Box
    • Circle
    • Cylinder
    • Delaunay
    • InvalidCurveException
    • Line
    • Line2d
    • Mesh
    • MeshCorner
    • MeshEdge
    • MeshFace
    • MeshGeometry
    • MeshHalfEdge
    • MeshPoint
    • MeshTopology
    • MeshVertex
    • NurbsCurve
    • NurbsSurface
    • Plane
    • Point2d
    • Point3d
    • Point4d
    • Polyline
    • Polyline2d
    • Ray
    • Ray2d
    • Rectangle2d
    • Sphere
    • Torus
    • Vector2d
    • Vector3d
    • VectorNd
  • Paramdigma.Core.Geometry.Interfaces
    • ICurve
    • ISurface
    • IVector
  • Paramdigma.Core.IO
    • CsvReader
    • CsvWritter
    • OBJMeshData
    • ObjReader
    • ObjWritter
    • OffMeshData
    • OffReader
    • OffResult
    • OffWriter
  • Paramdigma.Core.LinearAlgebra
    • Complex
    • LeastSquaresLinearFit
    • Triplet
    • TripletData
  • Paramdigma.Core.Optimization
    • GradientDescent
    • GradientDescent.FitnessFunction
    • GradientDescentOptions
    • GradientDescentResult
    • KMeansCluster
    • KMeansClustering
    • KMeansClustering.IterationCompletedEventArgs
  • Paramdigma.Core.Spatial
    • DelaunayEdge
    • DelaunayPoint
    • DelaunayTriangle
    • Octree
    • PointCloud
    • PointCloudMember
    • QuadTree

Class Complex

Represents a complex number (a number with real + imaginary components).

Inheritance
System.Object
Complex
Namespace: Paramdigma.Core.LinearAlgebra
Assembly: Paramdigma.Core.dll
Syntax
public class Complex : object

Constructors

| Improve this Doc View Source

Complex(Double, Double)

Initializes a new instance of the Complex class.

Declaration
public Complex(double real, double imaginary)
Parameters
Type Name Description
System.Double real

Real component.

System.Double imaginary

Imaginary component.

Properties

| Improve this Doc View Source

Imaginary

Gets or sets the Imaginary component of the complex number.

Declaration
public double Imaginary { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Real

Gets or sets the Real component of the complex number.

Declaration
public double Real { get; set; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Arg()

Computes the phase angle of this complex number.

Declaration
public double Arg()
Returns
Type Description
System.Double
| Improve this Doc View Source

Conjugate()

Conjugates complex number (negates the imaginary component).

Declaration
public Complex Conjugate()
Returns
Type Description
Complex
| Improve this Doc View Source

Exp()

Exponentiates this complex number.

Declaration
public Complex Exp()
Returns
Type Description
Complex
| Improve this Doc View Source

Inverse()

Computes the inverse of the complex number ((a + bi)^-1).

Declaration
public Complex Inverse()
Returns
Type Description
Complex
| Improve this Doc View Source

Norm()

Computes the length of the complex number.

Declaration
public double Norm()
Returns
Type Description
System.Double
| Improve this Doc View Source

Norm2()

Computes the squared length of the complex number.

Declaration
public double Norm2()
Returns
Type Description
System.Double
| Improve this Doc View Source

Polar()

Computes the polar form ae^(iθ), where a is the norm and θ is the phase angle of this complex number.

Declaration
public Complex Polar()
Returns
Type Description
Complex

Operators

| Improve this Doc View Source

Addition(Complex, Complex)

Adds to complex numbers.

Declaration
public static Complex operator +(Complex v, Complex w)
Parameters
Type Name Description
Complex v

First complex number.

Complex w

Second complex number.

Returns
Type Description
Complex
| Improve this Doc View Source

Division(Complex, Complex)

Divides two complex numbers.

Declaration
public static Complex operator /(Complex v, Complex w)
Parameters
Type Name Description
Complex v

Divisor.

Complex w

Dividend.

Returns
Type Description
Complex
| Improve this Doc View Source

Division(Complex, Double)

Divides a complex number by a number.

Declaration
public static Complex operator /(Complex v, double s)
Parameters
Type Name Description
Complex v

Divisor.

System.Double s

Dividend.

Returns
Type Description
Complex
| Improve this Doc View Source

Multiply(Complex, Complex)

Multiplies to complex numbers.

Declaration
public static Complex operator *(Complex v, Complex w)
Parameters
Type Name Description
Complex v

Multiplicand.

Complex w

Multiplier.

Returns
Type Description
Complex
| Improve this Doc View Source

Multiply(Complex, Double)

Multiplies a complex number with a number.

Declaration
public static Complex operator *(Complex v, double s)
Parameters
Type Name Description
Complex v

Multiplicand.

System.Double s

Multiplier.

Returns
Type Description
Complex
| Improve this Doc View Source

Multiply(Double, Complex)

Multiplies a complex number with a number.

Declaration
public static Complex operator *(double s, Complex v)
Parameters
Type Name Description
System.Double s

Multiplier.

Complex v

Multiplicand.

Returns
Type Description
Complex
| Improve this Doc View Source

Subtraction(Complex, Complex)

Substracts one complex number from another.

Declaration
public static Complex operator -(Complex v, Complex w)
Parameters
Type Name Description
Complex v

First complex number.

Complex w

Second complex number.

Returns
Type Description
Complex
  • Improve this Doc
  • View Source
Back to top Generated by DocFX