The 2D and 3D scaling are similar, but the key difference is that the 3D plane also includes the z-axis along with the x and y-axis.

In scaling, we can expend or compress the size of any object. We can apply scaling on the object by multiplying the original coordinates with scaling factors.

The term scaling factor is used to define whether the size of the object is increased or decreased. We can represent the scaling factor by ‘Sx’ for the x-axis, ‘Sy’ for the y-axis, and ‘Sz’ for the z-axis.

The increment and decrement of an object is depends on two conditions. They are-

If scaling factor (Sx, Sy, Sz) > 1, then the size of the object increased.

If scaling factor (Sx, Sy, Sz) < 1, then the size of the object decreased.

For Example: Let us assume,

The initial coordinates of object = P (x0, y0, z0)

Scaling factor for x-axis = Sx

Scaling factor for y-axis = Sy

Scaling factor for z-axis = Sz

The coordinates after Scaling = Q (x1, y1, z1)

We can represent the 3D Scaling in the form of equation-

X1 = x0. Sx

Y1 = y0. Sy

Z1 = z0. Sz

Matrix representation of 3D Scaling-