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()
Returns the real part of a complex number.
im
im()
Returns the imaginary part of a complex number.
mul
mul()
Multiplies two complex numbers together and returns the result
.
conj
conj()
Calculates the conjugate of a complex number.
dot
dot()
Calculates the dot product of two complex numbers in R^2
.
normsq
normsq()
Calculates the squared normal of a complex number.
norm
norm()
Calculates the normal of a complex number
scale
scale()
Multiplies a complex number by a scale factor.
unit
unit()
Returns a unit vector in the direction of a complex number.
inv
inv()
Inverts a complex number.
div
div()
Divides two complex numbers.
add
add()
Adds two complex numbers together.
sub
sub()
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.