I'm trying to implement a nearest neighbor search.
I have a set of points that lie within a rectangle of any size, and I need to map these points to the unit square such that the nearest neighbor relation between points is retained.
Is this possible, or will the mapping distort the relative distances between points?
For example, mapping the points inside of a 7 x 2 rectangle to the unit square.