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

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -