double radius1 = DISTANCE(in_x, in_y, in_pivot_x, in_pivot_y);
double radius2 = DISTANCE(in_x + in_w, in_y, in_pivot_x, in_pivot_y);
double radius3 = DISTANCE(in_x + in_w, in_y + in_h, in_pivot_x, in_pivot_y);
double radius1 = DISTANCE(in_x, in_y, in_pivot_x, in_pivot_y);
double radius2 = DISTANCE(in_x + in_w, in_y, in_pivot_x, in_pivot_y);
double radius3 = DISTANCE(in_x + in_w, in_y + in_h, in_pivot_x, in_pivot_y);