Skip to content

shz_xmtrx_invert_rigid

Markdown
SHZ_INLINE void shz_xmtrx_invert_rigid(void) SHZ_NOEXCEPT;

Inverts the rigid transform held within XMTRX in-place.

NameTypeDescription
``void

Nothing (void).

XMTRX must hold a rigid affine transform [R t; 0 1], where R is orthonormal. The result, [transpose(R), -transpose(R) * t; 0 1], is computed by transposing R rather than by a general inversion, making this far cheaper than shz_xmtrx_invert().

  • Scale, shear, and projective matrices are not inverted correctly. Use shz_xmtrx_invert() for those.

shz_xmtrx_invert