angel method

dynamic angel(
  1. Size a,
  2. Size b
)

I am calculating the angle, the purpose is to expand when tapping.

Implementation

angel(Size a, Size b) {
  var r = math.atan2(b.height - a.height, b.width - a.width);
  if (r < 0) {
    r = r + (2 * math.pi);
  }

  if ((r * circlePI / (2 * math.pi)) < circleCheckData) {
    var value = ((r * circlePI / (2 * math.pi)).floor() + circleComplement) /
        circlePI;
    circleTapLogic(value);
  } else {
    var value =
        ((r * circlePI / (2 * math.pi)).floor() - circleCheckData) / circlePI;
    circleTapLogic(value);
  }
}