angle method

double angle()

Implementation

double angle() {
  if (real == 0 && imaginary == 0) {
    return 0;
  }

  return atan2(imaginary, real);
}