double coordinatesToRadians(Offset center, Offset coords) { var a = coords.dx - center.dx; var b = center.dy - coords.dy; return atan2(b, a); }