Re: Angle of touch point from center of view?
Re: Angle of touch point from center of view?
- Subject: Re: Angle of touch point from center of view?
- From: David Duncan <email@hidden>
- Date: Thu, 5 Jan 2012 11:02:13 -0800
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 (email@hidden)
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:
This email sent to email@hidden