mymesh.register.Sh3d#
- mymesh.register.Sh3d(sh01, sh10, sh02, sh20, sh12, sh21, reference=array([0, 0, 0]))[source]#
Generates a shearing matrix ref:https://www.mathworks.com/help/images/matrix-representation-of-geometric-transformations.html
\[\begin{split}\mathbf{Sh} = \begin{bmatrix} 1 & sh_{01} & sh_{20} & 0 \\ sh_{01} & 1 & sh_{21} & 0 \\ sh_{02} & sh_{12} & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}\end{split}\]- Parameters:
sh01 (float) – Shear in the xy direction
sh10 (float) – Shear in the yx direction
sh02 (float) – Shear in the xz direction
sh20 (float) – Shear in the zx direction
sh12 (float) – Shear in the yz direction
sh21 (float) – Shear in the zy direction
reference (array_like) – Center to chear about, by default np.array([0,0,0])
- Returns:
sh – 4x4 scaling matrix
- Return type:
np.ndarray