Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 15. Advanced Visual Effects > 3D Core Animation Transforms

15.8. 3D Core Animation Transforms

The affine transform used for AppKit drawing are represented by a 3 × 3 matrix. This is enough to define transforms between 2D coordinate spaces. With Core Animation, we get a new kind of affine transform. The CATransform3D structure contains a 4 × 4 matrix. This can represent arbitrary transforms in 3D space.

Although transforms are structures, they can be manipulated using KVC key paths. For example, you can set the z-axis rotation in a layer like this:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial