i was wondering if someone every tried to fit a rectangle with a fixed size to a given set of points.
Imagine you have a set of points which is unsorted and not always showing a full hull of a rectangle. The image below should demonstrate the problem:
The set of points can vary and points could be missing. I would like to find a least squares method to find the best fitting rectangle with fixed side lengths.
Maybe I could find regression lines first but it seams to be possible to go a different way.
I'd appreciate any kind of hint.