O'Reilly logo

3D Programming for Windows® by Charles Petzold

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

Chapter 7. Matrix Transforms

In this chapter:

Linear Transforms 289

Affine Transforms and Beyond 300

Camera Transforms 325

My coverage of transforms in Chapter 2 and Chapter 3 omitted one of the classes that derive from Transform3D. That mystery class is MatrixTransform3D, which has the flexibility to encompass all the standard translate, scale, and rotation transforms—and much more. Naturally, it's not nearly as easy to use: The single read/write Matrix property is of type Matrix3D, a structure with 16 of its own read/write properties. In XAML, you can either set these properties of the Matrix3D object individually or indicate a complete Matrix3D with a string of 16 numbers.

If you find the standard translate, scale, and rotation transforms entirely ...

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