3D Shearing
3D Shearing in Computer Graphics:
In Computer graphics,
3D Shearing is an ideal technique to change the shape of an existing object in a three dimensional plane.
In a three dimensional plane, the object size can be changed along X direction, Y direction as well as Z direction. So, there are three versions of shearing:

- Shearing in X direction
- Shearing in Y direction
- Shearing in Z direction
Consider a point object O has to be sheared in a 3D plane. Let:
- Initial coordinates of the object O = (Xold, Yold, Zold)
- Shearing parameter towards X direction = Shx
- Shearing parameter towards Y direction = Shy
- Shearing parameter towards Z direction = Shz
- New coordinates of the object O after shearing = (Xnew, Ynew, Znew)
Shearing in X Axis-
Shearing in X axis is achieved by using the following shearing equations-
- Xnew = Xold
- Ynew = Yold + Shy x Xold
- Znew = Zold + Shz x Xold
In Matrix form, the above shearing equations may be represented as:

Shearing in Y Axis-
Shearing in Y axis is achieved by using the following shearing equations:
- Xnew = Xold + Shx x Yold
- Ynew = Yold
- Znew = Zold + Shz x Yold
In Matrix form, the above shearing equations may be represented as-

Shearing in Z Axis-
Shearing in Z axis is achieved by using the following shearing equations-
- Xnew = Xold + Shx x Zold
- Ynew = Yold + Shy x Zold
- Znew = Zold
In Matrix form, the above shearing equations may be represented as-
