Let's say I have an array with CGPoints (wrapped with NSValues). How can I get the two points which are most distant from each other. I mean the distance between these two points is the biggest? I can just check every two points but that does not look efficient. Is there a better way of doing this?
Thanks for help!