Maybe this works,

vec_for_min(my.min_x, my);
vec_for_max(my.max_x, my);

Have a nice day, Molotov.