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
Post a Comment