mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-30 02:01:46 +00:00
Add Complex.re & Complex.im
z.re & z.im are accessible on each Complex instance.
This commit is contained in:
Vendored
+10
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user