Re: Calculating Scale Factor touchesMoved event.
Re: Calculating Scale Factor touchesMoved event.
- Subject: Re: Calculating Scale Factor touchesMoved event.
- From: glenn andreas <email@hidden>
- Date: Thu, 02 Dec 2010 09:41:49 -0600
On Dec 2, 2010, at 9:37 AM, Gustavo Adolfo Pizano wrote:
> now in my touches moved I do the following, the first part applies a
> rotation, which is working properly, except that after the first move
> the angle is 180 from what the view has, so you see that the view
> turns 180 degrees!!,
> CGFloat a = atan2(-dx,dy);
atan2's parameters are declared as:
double atan2(double y, double x);
Glenn Andreas email@hidden
The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL
_______________________________________________
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