• 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: CABasicAnimation, CALayers, and rotation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CABasicAnimation, CALayers, and rotation


  • Subject: Re: CABasicAnimation, CALayers, and rotation
  • From: David Duncan <email@hidden>
  • Date: Tue, 4 Nov 2008 16:46:23 -0800

On Nov 4, 2008, at 4:30 PM, Michael A. Crawford wrote:

By default, positive angle values assigned to a rotation animation result in counter clockwise rotation. Is there a way to cause the rotation to occur in the clock-wise direction, with positive values? For example, consider a needle rotating in a compass. As the needle rotates in a clockwise direction the value that the needle points to increases (up until it wraps around, of course).


No, Core Animation always rotates counter-clockwise (this is how the underlying trigonometric operations work). If you want to rotate clockwise, you will have to calculate the changes yourself. You should also note that you can rotate outside of the unit circle (0-2π) and get the correct value, which is useful for certain effects.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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


References: 
 >CABasicAnimation, CALayers, and rotation (From: "Michael A. Crawford" <email@hidden>)

  • Prev by Date: Re: CABasicAnimation, CALayers, and rotation
  • Next by Date: Re: Pop-Up Graphical Calendar
  • Previous by thread: Re: CABasicAnimation, CALayers, and rotation
  • Next by thread: Re: CABasicAnimation, CALayers, and rotation
  • Index(es):
    • Date
    • Thread