Re: Re: Rotating an object
Re: Re: Rotating an object
- Subject: Re: Re: Rotating an object
- From: Daniel Steward <email@hidden>
- Date: Tue, 22 Aug 2006 10:48:33 -0600
Shawn,
To set up a rotation around an arbitrary point you do the following
after creating your NSAffineTransform.
[t translateXBy:p.x yBy:p.y];
[t rotateByDegrees:angle];
[t translateXBy:-p.x yBy:-p.y];
Applying this to the bezier path will rotate it around p.
Dan
================================================
Daniel E Steward
Owner, lead developer
DoodleBytes LLC
http://www.doodlebytes.com
email@hidden
================================================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden