toPolarCoordinates method

PolarComplex toPolarCoordinates()

Returns an instance of PolarComplex which contains the radius r and the angle phi of the complex number.

Implementation

PolarComplex toPolarCoordinates() {
  return PolarComplex(
    r: abs(),
    phiRadians: phase(),
    phiDegrees: _radToDeg(phase()),
  );
}