scaling1D

Creates a scaling transformation matrix for one-dimensional space. The matrix scales the x-coordinate by the given factor.

Return

An affine transformation matrix that scales the x-coordinate by the factor.

Parameters

factor

The scaling factor.