Creates an instance of Complex from another Complex number.
The Complex number.
Creates an instance of Complex from a Cartesian coordinate.
The Cartesian coordinate.
Creates an instance of Complex from a Polar coordinate.
The Polar coordinate.
Creates an instance of Complex from two optional values. If a value is omitted it's considered 0.
The real part.
The imaginary part.
The imaginary part.
The real part.
Constant e: z = e.
Difference between 1 and the smallest floating point number greater than 1. Simply stores Number.EPSILON in a static property.
Constant pi: z = π / 2.
Constant i: z = i.
Infinity: z = ∞.
Not a number: z = NaN.
Constant one: z = 1.
Constant pi: z = π.
Costant zero: z = 0.
Gets the imaginary part of a Complex number.
Gets the real part of a Complex number.
A method that returns a complex number in Cartesian coordinates.
A method that returns a complex number in Polar coordinates.
A method that formats a complex number to: ±a ± bi.
Generated using TypeDoc
A class that descibes Complex numbers and their operations.
To define a new Complex: