Projectile motion through two points
Notice that for any size rectangle, there is only one position where the parabola runs through the upper left and lower right corners exactly. This means that if we know the size of the box, we know everything about the parabola, including H and D which locate the box relative to the parabola.