Add Complex.re & Complex.im

z.re & z.im are accessible on each Complex instance.
This commit is contained in:
Paul Vasich 2018-09-18 11:17:52 -05:00 committed by Paul Vasich
parent 15abc2804b
commit 6dda128c44

View File

@ -45,6 +45,16 @@ export default class Complex {
* A instance for the real number
*/
static one: Complex;
/**
* The instance's real component.
*/
re: number;
/**
* The instance's imaginary component.
*/
im: number;
/**
* Set the real and imaginary properties a and b from a + bi.