phase method

double phase()

Converts rectangular coordinates to polar coordinates by computing an arc tangent of y/x in the range from -pi to pi.

Implementation

double phase() => math.atan2(imaginary, real);