Gives the matrix that scales by a factor along the direction of a vector.
ScalingMatrix[{s x, s y, …}]
ScalingMatrix[s, v]
ScalingMatrix[2, {1, 0}]
→ {{2, 0}, {0, 1}}ScalingMatrix[2, {1, 1}]
→ {{3/2, 1/2}, {1/2, 3/2}}ScalingMatrix[{2, 3}]
→ {{2, 0}, {0, 3}}