First of all I want to describe my problem: I have two 2D polygons (two sets of 2D point coordinates, polygonA and polygonB). I do not know if these two polygons collide or what is the distance between them. Moreover one of the polygons, say polygonA, is fixed, e.g. it is not allowed to translate or rotate it. Now I want to compute a position of polygonB such that 1. polygonA and polygonB do not collide 2. the summed squared distance between polygonA and polygonB is minimal In other words: I am looking for a position where polygonB "perfectly" lies on polygonA. Is there anybody who knows such an algorithm? Any ideas? Thank you very much for your help! Pia
问问题
116 次