• 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: Group CGAffineTransform Animations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Group CGAffineTransform Animations?


  • Subject: Re: Group CGAffineTransform Animations?
  • From: Graham Cox <email@hidden>
  • Date: Wed, 17 Jun 2009 20:03:15 +1000


On 17/06/2009, at 7:37 PM, Chunk 1978 wrote:

it seems to work find, but is this the most ideal way of doing this?


Yes, it's the correct way to do it.

If you read the article that Jean linked on Wikipedia, you would see what's going on. A transform is just a matrix, and a concatenation is just a matrix multiply, so you are doing an operation like m1 x m2 x m3. However, do note that in matrix maths, (m1 x m2) is not the same as (m2 x m1) as it is in scalar maths (i.e. it's not commutative), so the order of operations matters. If you don't get the outcome you expected, this is usually the reason for it.

--Graham


_______________________________________________

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: 
 >Group CGAffineTransform Animations? (From: Chunk 1978 <email@hidden>)
 >Re: Group CGAffineTransform Animations? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Group CGAffineTransform Animations? (From: Chunk 1978 <email@hidden>)
 >Re: Group CGAffineTransform Animations? (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: I want my app to crash!
  • Next by Date: Re: Group CGAffineTransform Animations?
  • Previous by thread: Re: Group CGAffineTransform Animations?
  • Next by thread: Re: Group CGAffineTransform Animations?
  • Index(es):
    • Date
    • Thread