O'Reilly logo

iOS 8 SDK Development, 2nd Edition by Janie Clayton, Chris Adamson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Affine Transformations

The properties and methods provided by the gesture recognizers work well with a trait common to all graphic objects in iOS: affine transformations. A transformation, speaking generally, changes how we draw something. More technically, transformations indicate how points in one coordinate system map to another. Affine transforms are special, because they maintain parallel lines between the two coordinate systems.

A specific example of how we already use affine transforms may be helpful here. Think of how when you print out a document, you can save paper by using the printer dialog to print two pages of the document on one sheet of physical paper, putting two portrait-oriented pages side by side on one landscape page. To ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required