hom_mat3d_invert — Invert a homogeneous 3D transformation matrix.
hom_mat3d_invert inverts the homogeneous 3D transformation
matrix given by
HomMat3D. The resulting matrix is returned in
Note that homogeneous matrices are stored row-by-row as a tuple; the last row is usually not stored because it is identical for all homogeneous matrices that describe an affine transformation. For example, the homogeneous matrix is stored as the tuple [ra, rb, rc, td, re, rf, rg, th, ri, rj, rk, tl]. However, it is also possible to process full 4×4 matrices, which represent a projective 4D transformation.
Input transformation matrix.
Output transformation matrix.
hom_mat3d_invert returns 2 (H_MSG_TRUE) if the parameters are valid and the
input matrix is invertible. Otherwise, an exception is raised.