re property

Complex re

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);

Implementation

Complex get re => Cartesian(toDouble());