On 07/09/2012, at 7:14 PM, Uli Kusterer <witness.of.teacht...@gmx.net> wrote:

> distance between two points is sqrt(pow(a.x -b.x,2) + pow(a.y -b.y,2)),


Or, much more simply, hypot( b.x - a.x, b.y - a.y );

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to