hello, I'm interested in removing the rectangle closest to the ref point..I thought about taking the one who's center point is closest to the refferrence point but I can't seem to link the closest point to the actual rectangle ..does any1 have a clue
you'll need to make sure your rectangles are in a single list, then you sort that list based on rectangle-distance-to-point. You can then either remove the first item from this list or sort a set of indices in parallel and remove the appropriate rectangle out of the original list (see attached).