mymesh.register.S2d#

mymesh.register.S2d(s0, s1, reference=array([0, 0]))[source]#

Generate a scaling matrix

\[\begin{split}\mathbf{S} = \begin{bmatrix} s_0 & 0 & 0 \\ 0 & s_1 & 0 \\ 0 & 0 & 1 \end{bmatrix}\end{split}\]
Parameters:
  • s0 (float) – Scale factor in the 0 axis (spatial y)

  • s1 (float) – Scale factor in the 1 axis (spatial x)

Returns:

s – 3x3 scaling matrix

Return type:

np.ndarray