Angle.cartesian constructor
Returns an angle in [0°, 360°)
, pointing to the cartesian coordinate.
The x
axis has angle 0°
, the y
axis has angle 90°
.
Implementation
factory Angle.cartesian(final double x, final double y) {
return Angle.atanFullTurn(y, x);
}