mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Add Complex.re & Complex.im
z.re & z.im are accessible on each Complex instance.
This commit is contained in:
parent
15abc2804b
commit
6dda128c44
10
types/complex/index.d.ts
vendored
10
types/complex/index.d.ts
vendored
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user