Angle.cartesian constructor Null safety

Angle.cartesian(
  1. double x,
  2. double y
)

Returns an angle in [0°, 360°), pointing to the cartesian coordinate. The x axis has angle , the y axis has angle 90°.

Implementation

factory Angle.cartesian(final double x, final double y) {
  return Angle.atanFullTurn(y, x);
}