Creates a complex number
The first input number
The second input number
Creates a complex number z = z.re + i z.im
Phi angle in polar coordinate
angle
Phi angle in polar coordinate with TAU
angle divided by TAU
Radius in polar coordinate
number
Absolute value (length)
absolute value
Length squared: intensity probability
number
Complex number argument in range [0,Tau]
number
Complex conjugation
z = z{re, -im}
Tests if a complex is equal to another
complex to test equality
z1 === z2
Check if a complex number is very close zero (norm at most 1e-6 from zero)
z1 ~= 0
Tests if a complex is close to another
complex to test proximity
tolerance for the Euclidean norm
z1 ~= z2
Check if a complex number is normalized
z1.r === 1
Check if a complex number is one
z1 === 1
Check if a complex number is zero
z1 === 0
Gauss complex multiplication algorithm https://en.wikipedia.org/wiki/Multiplication_algorithm#Complex_multiplication_algorithm
complex number to be multiplied
z = z1 * z2
z
Generate HSL color from complex number See complex domain coloring
RGB string
Override toString() method
choice between ["cartesian", "polar", "polarTau"]
float display precision
string with appropriate format
Create a complex number from polar coordinates
Radius in polar coordinates
Angle in polar coordinates
Generates a random complex with Gaussian distribution (with zero mean and unit variance) using https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform.
Generated using TypeDoc
Complex number class https://en.wikipedia.org/wiki/Complex_number