Scaling Matrix Generator

Visualize and generate scaling matrices for 2D and 3D transformations.

Enter Scaling Factors

What is a Scaling Matrix?

In linear algebra, a scaling matrix is a diagonal matrix used to perform scaling transformations. When you multiply a vector by a scaling matrix, you scale each component of the vector by the corresponding diagonal element of the matrix. For example, in 2D, a scaling matrix is represented as [[Sx, 0], [0, Sy]], where Sx and Sy are the scaling factors along the x and y axes respectively. In 3D, it extends to [[Sx, 0, 0], [0, Sy, 0], [0, 0, Sz]]. This tool helps you generate these matrices and visualize their effect on a 2D shape.