O'Reilly logo

Morphing by Joseph Choma

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

Rotating

In order to rotate a shape within most software, a rotational axis must first be defined. Similarly, within mathematics, an initial geometry is ‘plugged into’ a rotation matrix. Below are a series of templates to rotate a shape around each axis (x, y, z). The xa,ya, za within each of the templates below are the initial descriptions of the original shape, prior to its rotation. For example, a cylinder is defined by a parametric equation where xa = cos(u), ya = sin(u), and za = v. To rotate the cylinder, insert each of these definitions into the templates below.

Typically, we speak and think about rotation in terms of degrees, not radians. This guide has been written in radians, but it is easy to move between the two units. Some common ...

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