12ANIMATING AFFINE TRANSFORMATIONS
You just learned the basics of animation and GUI design. In this chapter, we’ll combine the two and build an application that animates affine transformations. This will help build your visual intuition for this potentially confusing topic and strengthen your programming skills.
The application will first read a text file defining the affine transformation and the geometries to transform. Then, it’ll compute a sequence of affine transformations, interpolating from the identity to the given transformation. Each of the transformations in this sequence will be used to draw a frame of the animation.
As with the circle ...
Get Hardcore Programming for Mechanical Engineers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.