Shearing
A shearing (or skew) transformation has the effect of making straight lines slanted. It’s probably the most (visually) complex transformation that we’ll implement, though the implementation is no more complicated than any of the others.
When applied to a tuple, a shearing transformation changes each component of the tuple in proportion to the other two components. So the x component changes in proportion to y and z, y changes in proportion to x and z, and z changes in proportion to x and y.
The following illustration shows how this works in two dimensions. Specifically, note how differently the same transformation affects each point in x as the y component changes.
This is what “changing in proportion” means: the farther the y coordinate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access