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 ...

Get Morphing 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.