4
$\begingroup$

how I would find line lengths highlighted with other color (with question marks) on the picture below? I know coordinates and size of these rectangles.

My goal is to find 'the closest' rectangle to the green one, but 'closest' is a quite abstract definition, so I decided that 'closest' would be one with shortest highlighted line on the picture below. Maybe there are other simpler ways to find 'closest' rectangle?

rectangles

  • 1
    "Simple" depends on the way you define closeness. In Analysis, the distance between two sets is defined as the shortest of all the distances between points in one set and points in the other. Your interpration is simpler. To find those lengths you marked, well, there's the theorem of Pythagoras.2011-11-02

4 Answers 4