Nepedia
Back to Discover
Fluent Reader
🔢

Shear mapping

math Maturity 11-13 Next article →

Imagine you have a square drawn on a piece of paper. If you push the top of the square to the side while keeping the bottom edge still, the square tilts. It becomes a slanted shape called a parallelogram. This movement is known as a shear mapping. In a shear, every point moves in one fixed direction. The amount a point moves depends on its distance from a starting line. Points on that line do not move at all. Points on one side might move right, while points on the other side move left.

VerticalShear m=1.25 (blue and red)
VerticalShear m=1.25 (blue and red)

This transformation works in a very specific way. In a horizontal shear, the points move left or right. The distance they travel is proportional to their vertical position. If you use a shear factor, you can decide how much the shape tilts. For example, a square might tilt by 30 degrees. This makes the vertical lines become slanted lines. You can also have a vertical shear. This moves points up or down instead of side to side.

SVG skewX
SVG skewX

Math experts have used these ideas for a long time. A mathematician named William Kingdon Clifford studied how these shapes work. He found that you can use shears to change any shape with straight sides into a triangle. He also showed that you can turn any triangle into a right-angled triangle. Even though the shape changes, the area stays exactly the same. This is a very special rule of shearing. It means the space inside the shape does not grow or shrink.

VerticalShear m=1.25 (blue and red)
VerticalShear m=1.25 (blue and red)

Shearing is useful in many different fields. In science, it describes how layers of liquid slide past each other. This is called laminar flow.

Laminar shear
Laminar shear

In computer graphics, shearing helps move digital images. An algorithm by Alan W. Paeth uses three shear steps to rotate an image. This method is very fast because it only looks at one row or column at a time. You also see shearing in the books you read. It is the main way to turn upright letters into slanted italics.

VerticalShear m=1.25 (blue and red)
VerticalShear m=1.25 (blue and red)

Even in three dimensions, the rules stay similar. If you shear a solid object, its volume stays the same. The math works in even higher dimensions too. In these cases, we measure distance from a flat surface called a hyperplane. No matter how many dimensions you use, the total capacity stays constant. This makes shear mapping a very reliable tool for math and science. It allows us to change how things look without changing how much space they take up.

418 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:VerticalShear m=1.25 (blue and red).svg
VerticalShear m=1.25 (blue and red).svg
File:Laminar_shear.svg
Laminar_shear.svg
File:SVG skewX.svg
SVG skewX.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.