ComplexerX extension

The ComplexerX expose methods for easy convertion from num to Complex.

To create a Complex without imaginary part (i.e. a real) from a num, use num.real getter.

final a = 3.real; // a = Complex(3.0, 0);
final b = 4.0.real; // b = Complex(4.0, 0);
final c = 3.re; // c = Complex(3.0, 0);
final d = 4.0.re; // d = Complex(4.0, 0);

use num.imag getter.

final a = 3.imag; // a = Complex(0, 3.0);
final b = 4.0.imag; // b = Complex(0, 4.0);
final c = 3.im; // c = Complex(0, 3.0);
final d = 4.0.im; // d = Complex(0, 4.0);
on

Properties

im Complex

Available on num, provided by the ComplexerX extension

use num.imag getter.
no setter
imag Complex

Available on num, provided by the ComplexerX extension

use num.imag getter.
no setter
re Complex

Available on num, provided by the ComplexerX extension

To create a Complex without imaginary part (i.e. a real) from a num, use num.real getter.
no setter
real Complex

Available on num, provided by the ComplexerX extension

To create a Complex without imaginary part (i.e. a real) from a num, use num.real getter.
no setter