Add rigid inverse for 3x3 and 4x4 matrices
All checks were successful
CI / build-and-analyze (push) Successful in 1m22s

This commit is contained in:
2026-07-21 12:08:16 +03:00
parent 57a1be7924
commit 2c7a7c4c4a
3 changed files with 29 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ void CgeMat3fTranspose(const float in[9], float out[9]);
float CgeMat3fTrace(const float in[9]);
float CgeMat3fDet(const float in[9]);
int CgeMat3fInverse(const float in[9], float out[9]);
void CgeMat3fInverseRigid(const float in[9], float out[9]);
void CgeMat3fFromScale(float x, float y, float out[9]);
void CgeMat3fFromTranslation(float x, float y, float out[9]);
void CgeMat3fFromRotation(float angle, float out[9]);
@@ -54,6 +55,7 @@ void CgeMat4fTranspose(const float in[16], float out[16]);
float CgeMat4fTrace(const float in[16]);
float CgeMat4fDet(const float in[16]);
int CgeMat4fInverse(const float in[16], float out[16]);
void CgeMat4fInverseRigid(const float in[16], float out[16]);
void CgeMat4fFromScale(float x, float y, float z, float out[16]);
void CgeMat4fFromTranslation(float x, float y, float z, float out[16]);
void CgeMat4fFromRotationX(float angle, float out[16]);