ScalingTransform¶
Create a scaling transformation matrix.
A scalar factor scales along a direction vector, leaving the perpendicular directions alone:
$ wo 'ScalingTransform[2, {1, 1}]'
TransformationFunction[{{3/2, 1/2, 0}, {1/2, 3/2, 0}, {0, 0, 1}}]
A third argument centres the scaling at that point: