• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re: Rotating an object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Accepting drags from Address Book with multiple people/groups
  • Next by Date: Non-ASCII NSTask arguments
  • Previous by thread: Re: Re: Rotating an object
  • Next by thread: NSTableView w/Contextual Menu
  • Index(es):
    • Date
    • Thread