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