Generate a 3d scaling matrix
\[\begin{split}\mathbf{S} = \begin{bmatrix}
s_0 & 0 & 0 & 0 \\
0 & s_1 & 0 & 0 \\
0 & 0 & s_2 & 0 \\
0 & 0 & 0 & 1
\end{bmatrix}\end{split}\]
- Parameters:
s0 (float) – Scale factor in the x axis
s1 (float) – Scale factor in the y axis
s2 (float) – Scale factor in the z axis
- Returns:
s – 4x4 scaling matrix
- Return type:
np.ndarray