angleBetweenPointsOffset static method

double angleBetweenPointsOffset(
  1. Offset p1,
  2. Offset p2
)

Implementation

static double angleBetweenPointsOffset(Offset p1, Offset p2) {
  return atan2(p2.dy - p1.dy, p2.dx - p1.dx);
}