On 17/06/2009, at 1:27 AM, Chunk 1978 wrote:

so is CGAffineTransform considered Cocoa Animation, while
CATransform3D is Core Animation?  but they essentially do the same
thing?  just trying to get things straight.


Not sure what you mean by Cocoa Animation.

CGAffineTransform is a Core GRAPHICS structure, as its 'CG' prefix suggests. That is a strictly 2D technology, so the matrix used is 3x3. CATransform3D is used by Core Animation (CALayer, etc) which is a 3D technology, so the matrix it uses is 4x4.

So they are not the same thing, though they perform the equivalent task of transforming co-ordinates, the first in 2 dimensions, the second in 3. In Core Animation, you use a CATransform3D to perform translation, scaling and rotation of objects in 3 dimensions.

--Graham




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to