ComplexNumber Class
Class for representing a complex number.
Constructor
Item Index
Methods
conjugate
()
chainable
Negates the imaginary part.
fromPolar
(
static
-
magnitude
-
phase
Construct a ComplexNumber from polar coordinates.
Returns:
ComplexNumber
negate
()
chainable
Equivalent of unary minus operator.
phase
()
Number
Returns:
Number:
angle of the vector (in radians) in the complex plane relative to the positive real axis
rotate
(
chainable
-
angle
Rotates the number around the origin by the specified angle in radians.
Parameters:
-
angle
Number