I\'m trying to get the alpha angle in degrees from x,y when user creates an object.
I wrote the following constructor:
public class Point { priva
This should be by far the shortest and simplest way:
_radius = Math.hypot(x, y); _alpha = Math.toDegrees(Math.atan2(y, x));
Keep in mind that when computed this way, _alpha will have values between -180 and 180 degrees.
_alpha