mymesh.register.T3d#

mymesh.register.T3d(t0, t1, t2)[source]#

Generate a translation matrix

\[\begin{split}\mathbf{T} = \begin{bmatrix} 1 & 0 & 0 & t_0 \\ 0 & 1 & 0 & t_1 \\ 0 & 0 & 1 & t_2 \\ 0 & 0 & 0 & 1 \end{bmatrix}\end{split}\]
Parameters:
  • t0 (float) – Translation in the x axis

  • t1 (float) – Translation in the y axis

  • t2 (float) – Translation in the z axis

Returns:

t – 4x4 translation matrix

Return type:

np.ndarray