why cant you just write a short function to average the position of the two vectors, and set the box dimensions accordingly? it shouldn't take more than 10 lines.
something like vectorAdd(vectorScale(vectorSub(%p1, %p2), 0.5), %p1); would get you the center