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 3. Axis/Angle Rotation

In this chapter:

The Rotation Transform 101

Combining Rotation and Other Transforms 113

Introduction to Hit-Testing 128

Animating the Axis 145

The third of the three standard types of 3D transforms is the rotation. Both conceptually and syntactically, the rotation is quite a bit more complex than translation or scaling, and it's no use trying to persuade you otherwise. Combinations of rotations in several planes can be so complex that a special mathematical tool called the quaternion exists solely for working with them. Yet, the quaternion itself is so complex that I'm going to delay discussing it until Chapter 8.

The Rotation Transform

The RotateTransform3D class defines just four properties. Like ScaleTransform3D, RotateTransform3D ...

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