public static Angle fromXY(double x,double y){
  double radians=Math.atan2(y,x);
  return new Angle(RADIANS_TO_DEGREES * radians,radians);
}

public static Angle fromXY ( double x , double y ) { double radians = Math . atan2 ( y , x ) ; return new Angle ( RADIANS_TO_DEGREES * radians , radians ) ; }
obtains an angle from rectangular coordinates .
