retrieveAngle static method

double retrieveAngle(
  1. Offset a,
  2. Offset b
)

Return an angle between 2 points

Implementation

static double retrieveAngle(Offset a, Offset b) {
  double blockAngle = atan2(
    b.dy - a.dy,
    b.dx - a.dx,
  );

  return blockAngle;
}