these two are non-overlapping
now how can you find the two corners that are nearest to each other? (that's one corner on each box, obviously
for bonus points, how do you check if they are not overlapping?
sorry, no price attached


That's what I was thinking too!Trond wrote:I don't understand the problem. Do you mean like finding the two circled corners because they are the ones that are closest to each other?
That's simple, simply loop through all the distances and check which is the shortest.
