shz_xmtrx_invert_rigid
SHZ_INLINE void shz_xmtrx_invert_rigid(void) SHZ_NOEXCEPT;Inverts the rigid transform held within XMTRX in-place.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| `` | void |
Returns
Section titled “Returns”Nothing (void).
Details
Section titled “Details”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().
Warnings
Section titled “Warnings”- Scale, shear, and projective matrices are not inverted correctly. Use
shz_xmtrx_invert()for those.
Availability
Section titled “Availability”- C++ equivalent:
shz::xmtrx::invert_rigid - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_xmtrx.h:1250 - Module: XMTRX, section "Miscellaneous"