angle method

double angle()

Implementation

double angle() {
  // computes the angle in radians with respect to the positive x-axis
  final angle = math.atan2(-y, -x) + math.pi;
  return angle;
}