Hi all,
I have about 1500 objects that have an x and a y property. I would like to be able to sort them by distance from a point in the plane. Something like the following would be great:
x.searchNearest(20,list)
would return a list of the the 20 objects in list that are closest to x in the plane.
I'd just like some ideas to play with on how to impliment this.
Thanks in advance,
Ben
I have about 1500 objects that have an x and a y property. I would like to be able to sort them by distance from a point in the plane. Something like the following would be great:
x.searchNearest(20,list)
would return a list of the the 20 objects in list that are closest to x in the plane.
I'd just like some ideas to play with on how to impliment this.
Thanks in advance,
Ben