objective c - Find closest point from array of points -


i have array of cgpoints (well, nsstrings cgpoints).

i have separate point called cgpoint nextpoint.

how find out cgpoint, in array, closest nextpoint?

have considered iterating through array , finding distance between points?

you store distance in new nsmutablearray , grab smallest value it.


Comments

Popular posts from this blog

android - Automated my builds -

apache - GeoServer under https -

php - Iterate over object properties with keys from second array -