| /TwlSDK-5.1.0/build/demos/gx/UnitTours/PosVecTest/src/ |
| D | main.c | 297 fx16 vec[3]; in TwlMain() local 319 while (G3X_GetVectorTestResult(vec)) in TwlMain() 325 OS_Printf("mssg%d:Vector Test : Vec(%d, %d, %d)\n", count++, vec[0], vec[1], vec[2]); in TwlMain() 328 EXT_CompPrint("Vec(3222, 1982, 1546)", "Vec(%d, %d, %d)", vec[0], vec[1], vec[2]); in TwlMain()
|
| /TwlSDK-5.1.0/build/libraries/gx/ARM9/src/ |
| D | g3x.c | 688 int G3X_GetPositionTestResult(VecFx32 *vec, fx32 *w) in G3X_GetPositionTestResult() argument 690 SDK_NULL_ASSERT(vec); in G3X_GetPositionTestResult() 699 vec->x = (fx32)reg_G3X_POS_RESULT_X; in G3X_GetPositionTestResult() 700 vec->y = (fx32)reg_G3X_POS_RESULT_Y; in G3X_GetPositionTestResult() 701 vec->z = (fx32)reg_G3X_POS_RESULT_Z; in G3X_GetPositionTestResult() 718 int G3X_GetVectorTestResult(fx16 *vec) in G3X_GetVectorTestResult() argument 720 SDK_NULL_ASSERT(vec); in G3X_GetVectorTestResult() 727 *(vec + 0) = (fx16)reg_G3X_VEC_RESULT_X; in G3X_GetVectorTestResult() 728 *(vec + 1) = (fx16)reg_G3X_VEC_RESULT_Y; in G3X_GetVectorTestResult() 729 *(vec + 2) = (fx16)reg_G3X_VEC_RESULT_Z; in G3X_GetVectorTestResult()
|
| /TwlSDK-5.1.0/build/libraries/fx/common/src/ |
| D | fx_mtx33.c | 222 void MTX_RotAxis33(MtxFx33 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal) in MTX_RotAxis33() argument 228 SDK_NULL_ASSERT(vec); in MTX_RotAxis33() 233 xx = (fx64)vec->x; in MTX_RotAxis33() 234 yy = (fx64)vec->y; in MTX_RotAxis33() 235 zz = (fx64)vec->z; in MTX_RotAxis33() 436 void MTX_MultVec33(const VecFx32 *vec, const MtxFx33 *m, VecFx32 *dst) in MTX_MultVec33() argument 439 SDK_NULL_ASSERT(vec); in MTX_MultVec33() 443 x = vec->x; in MTX_MultVec33() 444 y = vec->y; in MTX_MultVec33() 445 z = vec->z; in MTX_MultVec33()
|
| D | fx_mtx43.c | 235 void MTX_RotAxis43(MtxFx43 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal) in MTX_RotAxis43() argument 237 MTX_RotAxis33((MtxFx33 *)pDst, vec, sinVal, cosVal); in MTX_RotAxis43() 442 void MTX_MultVec43(const VecFx32 *vec, const MtxFx43 *m, VecFx32 *dst) in MTX_MultVec43() argument 445 SDK_NULL_ASSERT(vec); in MTX_MultVec43() 449 x = vec->x; in MTX_MultVec43() 450 y = vec->y; in MTX_MultVec43() 451 z = vec->z; in MTX_MultVec43()
|
| D | fx_mtx44.c | 317 void MTX_RotAxis44(MtxFx44 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal) in MTX_RotAxis44() argument 323 SDK_NULL_ASSERT(vec); in MTX_RotAxis44() 328 xx = (fx64)vec->x; in MTX_RotAxis44() 329 yy = (fx64)vec->y; in MTX_RotAxis44() 330 zz = (fx64)vec->z; in MTX_RotAxis44()
|
| /TwlSDK-5.1.0/include/nitro/fx/ |
| D | fx_mtx33.h | 47 void MTX_RotAxis33(MtxFx33 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal); 50 void MTX_MultVec33(const VecFx32 *vec, const MtxFx33 *m, VecFx32 *dst);
|
| D | fx_mtx43.h | 47 void MTX_RotAxis43(MtxFx43 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal); 50 void MTX_MultVec43(const VecFx32 *vec, const MtxFx43 *m, VecFx32 *dst);
|
| D | fx_mtx44.h | 47 void MTX_RotAxis44(MtxFx44 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal);
|
| /TwlSDK-5.1.0/include/nitro/gx/ |
| D | g3x.h | 147 int G3X_GetPositionTestResult(VecFx32 *vec, fx32 *w); // read: GXSTAT(0), POS_RESULT_X, P… 148 int G3X_GetVectorTestResult(fx16 *vec); // read: GXSTAT(0), VEC_RESULT_X, VEC_RESULT_Y, VEC…
|
| /TwlSDK-5.1.0/build/demos/fx/test/src/ |
| D | main.c | 469 VecFx32 vec = { FX32_ONE, FX32_ONE, FX32_ONE }; in test_FX_MTX33() local 471 MTX_MultVec33(&vec, &m, &vec); in test_FX_MTX33() 472 SDK_ASSERTMSG(vec.x == ans.x && vec.y == ans.y && vec.z == ans.z, "MTX_MultVec33"); in test_FX_MTX33()
|