2020-10-03 15:22:44 +00:00
|
|
|
#include "global.h"
|
2020-05-25 21:18:14 +00:00
|
|
|
|
2021-11-26 22:37:33 +00:00
|
|
|
void MtxConv_F2L(Mtx* m1, MtxF* m2) {
|
2020-05-25 21:18:14 +00:00
|
|
|
s32 i;
|
|
|
|
s32 j;
|
|
|
|
|
|
|
|
LogUtils_CheckNullPointer("m1", m1, "../mtxuty-cvt.c", 31);
|
|
|
|
LogUtils_CheckNullPointer("m2", m2, "../mtxuty-cvt.c", 32);
|
|
|
|
|
|
|
|
for (i = 0; i < 4; i++) {
|
|
|
|
for (j = 0; j < 4; j++) {
|
|
|
|
s32 value = (m2->mf[i][j] * 0x10000);
|
2021-11-30 23:40:42 +00:00
|
|
|
|
2020-05-25 21:18:14 +00:00
|
|
|
m1->intPart[i][j] = value >> 16;
|
|
|
|
m1->fracPart[i][j] = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-26 22:37:33 +00:00
|
|
|
void MtxConv_L2F(MtxF* m1, Mtx* m2) {
|
2020-05-25 21:18:14 +00:00
|
|
|
LogUtils_CheckNullPointer("m1", m1, "../mtxuty-cvt.c", 55);
|
|
|
|
LogUtils_CheckNullPointer("m2", m2, "../mtxuty-cvt.c", 56);
|
2021-11-26 22:37:33 +00:00
|
|
|
guMtxL2F(m1, m2);
|
2020-05-25 21:18:14 +00:00
|
|
|
}
|