angle method

double angle()

Implementation

double angle() {
  if (x == 0 && y == 0) {
    return 0;
  }

  return atan2(y, x);
}