Invert 4x4 matrix - Numerical most stable solution needed

后端 未结 6 822
青春惊慌失措
青春惊慌失措 2021-02-04 08:41

I want to invert a 4x4 matrix. My numbers are stored in fixed-point format (1.15.16 to be exact).

With floating-point arithmetic I usually just build the adjoint matrix

6条回答
  •  既然无缘
    2021-02-04 09:08

    If the matrix represents an affine transformation (many times this is the case with 4x4 matrices so long as you don't introduce a scaling component) the inverse is simply the transpose of the upper 3x3 rotation part with the last column negated. Obviously if you require a generalized solution then looking into Gaussian elimination is probably the easiest.

提交回复
热议问题