title: Convert from Radians to Degrees in Java
body: <p>I'm trying to get the alpha angle in degrees from x,y when user creates an object.</p>
  
  <p>I wrote the following constructor:</p>
  
  <pre><code>public class Point
  {
      private double _radius , _alpha;    
  
      public Point ( int x , int y )
      {
          _radius = Math.sqrt ( Math.pow(x,2) + Math.pow (y,2) ) ;
          _alpha = ( ( Math.atan (y/x) ) * 180 ) / Math.PI;
      }
  
  }
  </code></pre>
  
  <ol>
  <li><p>Am I right that _alpha is now an angle in degrees instead of radians that I got from the atan() method ?</p></li>
  <li><p>Is there a simple way to do so ?</p></li>
  </ol>
  
  <p>Thanks !</p>