| 1243 | |
| 1244 | COVERAGE(HMM_InvGeneralM2, 1) |
| 1245 | static inline HMM_Mat2 HMM_InvGeneralM2(HMM_Mat2 Matrix) |
| 1246 | { |
| 1247 | ASSERT_COVERED(HMM_InvGeneralM2); |
| 1248 | |
| 1249 | HMM_Mat2 Result; |
| 1250 | float InvDeterminant = 1.0f / HMM_DeterminantM2(Matrix); |
| 1251 | Result.Elements[0][0] = InvDeterminant * +Matrix.Elements[1][1]; |
| 1252 | Result.Elements[1][1] = InvDeterminant * +Matrix.Elements[0][0]; |
| 1253 | Result.Elements[0][1] = InvDeterminant * -Matrix.Elements[0][1]; |
| 1254 | Result.Elements[1][0] = InvDeterminant * -Matrix.Elements[1][0]; |
| 1255 | |
| 1256 | return Result; |
| 1257 | } |
| 1258 | |
| 1259 | /* |
| 1260 | * 3x3 Matrices |
no test coverage detected