complex
A complex number that takes the form of an array of two floats. The first element is the real number and the second represents the imaginary.
re
re() -> float
Returns the real part of a complex number.
im
im() -> float
Returns the imaginary part of a complex number.
mul
mul()
Multiplies two complex numbers together and returns the result .
conj
conj() -> complex
Calculates the conjugate of a complex number.
dot
dot() -> float
Calculates the dot product of two complex numbers in R^2 .
normsq
normsq() -> float
Calculates the squared normal of a complex number.
norm
norm() -> float
Calculates the normal of a complex number
scale
scale() -> complex
Multiplies a complex number by a scale factor.
unit
unit() -> vector
Returns a unit vector in the direction of a complex number.
inv
inv() -> complex
Inverts a complex number.
div
div() -> complex
Divides two complex numbers.
add
add() -> complex
Adds two complex numbers together.
sub
sub() -> complex
Subtracts two complex numbers together.
arg
arg()
Calculates the argument of a complex number.
ang
ang()
Get the signed angle of two complex numbers from V to W.