On Jan 5, 2012, at 10:49 AM, Eric E. Dolecki wrote:

> I'd like to calculate the angle from a center point of a view to a touch
> point.
> 
> 0º behind top of screen, 180º being bottom of screen.
> 
> Calculating from touchesMoved.
> 
> Any pointers? Checking Google again.

This is basically just the theta calculation of a convert to polar coordinates. 
man atan2 should give you what you need to know.
--
David Duncan

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to