angle method

double angle()

Implementation

double angle() {
  // computes the angle in radians with respect to the positive x-axis

  var angle = Math.atan2(-y, -x) + Math.PI;

  return angle;
}