Re: Group CGAffineTransform Animations?
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