sys_matrix OK, documented, rename some other mathematics functions (#787)

* Import data and bss, add some name options

* Decomp rest of stack functions,
remove RSPMatrix,
split header

* sys_matrix OK (thanks Tharo)

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* pragma weaks in sinf and cosf, change documentation
change mcros to use 0x8000

* Rename sinf and cosf

* Correct initialisation of sMtxFClear

* More minor cleanup

* Rename stack functions

* Matrix_InsertMatrix -> Matrix_Mult

* The big transpose rename

* Fix MirRay_DrawReflectedBeam

* Matrix_InsertTranslation -> Matrix_Translate

* Matrix_Insert.Rotation_s -> Matrix_Rotate$1S
+ RotateY -> RotateYS

* Matrix_Insert(.)Rotation_f -> Matrix_Rotate$1F

* Matrix_RotateStateAroundXAxis -> Matrix_RotateXFApply
Matrix_SetStateXRotation -> Matrix_RotateXFNew

* Matrix_MultiplyVector3fByState -> Matrix_MultVec3f

* Matrix_MultiplyVector3fXZByCurrentState -> Matrix_MultVec3fXZ

* Matrix_GetStateTranslation -> Matrix_MultZero

* Matrix_GetStateTranslationAndScaled(.) -> Matrix_MultVec$1

* Matrix_FromRSPMatrix -> Matrix_MtxToMtxF

* Matrix_MultiplyVector3fByMatrix -> Matrix_MultVec3fExt

* Matrix_TransposeXYZ -> Matrix_Transpose

* Matrix_ToRSPMatrix -> Matrix_MtxFToMtx

* Matrix_AppendToPolyOpaDisp -> Matrix_MtxFToNewMtx
and document the conversion functions

* Matrix_NormalizeXYZ -> Matrix_ReplaceRotation

* Matrix_InsertRotationAroundUnitVector_f -> Matrix_RotateAxisF and S

* Matrix_InsertRotation -> Matrix_RotateZYX

* Document the last functions

* Small cleanup

* Matrix_JointPosition -> Matrix_TranslateRotateZYX

* Matrix_SetStateRotationAndTranslation -> Matrix_SetTranslateRotateYXZ

* func_8018219C -> Matrix_MtxFToYXZRot

* func_801822C4 -> Matrix_MtxFToZYXRot

* Fix files

* Format

* Review 1

* Renames

* Fix warning in EnDragon

* Format

* Convert `mode` to an actual enum

* Add enums, typedefs, externs to sys_matrix header

* Review

* One more

* More review

* Fix function names

* Format

* Fix names

* Format

* Review

* engineer's review

* Fix build

* Format

* Fix again

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
This commit is contained in:
EllipticEllipsis
2022-05-26 04:24:39 +01:00
committed by GitHub
parent e1477702ca
commit 8049dec339
303 changed files with 5474 additions and 3324 deletions
+2 -2
View File
@@ -248,7 +248,7 @@ asm/non_matchings/boot/setintmask/osSetIntMask.s,osSetIntMask,0x80088010,0x28
asm/non_matchings/boot/getintmask/osGetIntMask.s,osGetIntMask,0x800880B0,0x18
asm/non_matchings/boot/voicesetword/osVoiceSetWord.s,osVoiceSetWord,0x80088110,0x64
asm/non_matchings/boot/guScale/guScale.s,guScale,0x800882A0,0x2C
asm/non_matchings/boot/sinf/__sinf.s,__sinf,0x80088350,0x70
asm/non_matchings/boot/sinf/sinf.s,sinf,0x80088350,0x70
asm/non_matchings/boot/sins/sins.s,sins,0x80088510,0x1C
asm/non_matchings/boot/sptask/_VirtualToPhysicalTask.s,_VirtualToPhysicalTask,0x80088580,0x43
asm/non_matchings/boot/sptask/osSpTaskLoad.s,osSpTaskLoad,0x8008868C,0x5A
@@ -407,7 +407,7 @@ asm/non_matchings/boot/interrupt/__osRestoreInt.s,__osRestoreInt,0x80091AD0,0x8
asm/non_matchings/boot/vi/__osViInit.s,__osViInit,0x80091AF0,0x48
asm/non_matchings/boot/viswapcontext/__osViSwapContext.s,__osViSwapContext,0x80091C10,0xC0
asm/non_matchings/boot/pigetcmdq/osPiGetCmdQueue.s,osPiGetCmdQueue,0x80091F10,0xC
asm/non_matchings/boot/cosf/__cosf.s,__cosf,0x80091F40,0x5C
asm/non_matchings/boot/cosf/cosf.s,cosf,0x80091F40,0x5C
asm/non_matchings/boot/epiread/osEPiReadIo.s,osEPiReadIo,0x800920B0,0x14
asm/non_matchings/boot/visetspecial/osViSetSpecialFeatures.s,osViSetSpecialFeatures,0x80092100,0x58
asm/non_matchings/boot/coss/coss.s,coss,0x80092260,0xC
1 asm/non_matchings/boot/boot_main/bootproc.s bootproc 0x80080060 0x3C
248 asm/non_matchings/boot/getintmask/osGetIntMask.s osGetIntMask 0x800880B0 0x18
249 asm/non_matchings/boot/voicesetword/osVoiceSetWord.s osVoiceSetWord 0x80088110 0x64
250 asm/non_matchings/boot/guScale/guScale.s guScale 0x800882A0 0x2C
251 asm/non_matchings/boot/sinf/__sinf.s asm/non_matchings/boot/sinf/sinf.s __sinf sinf 0x80088350 0x70
252 asm/non_matchings/boot/sins/sins.s sins 0x80088510 0x1C
253 asm/non_matchings/boot/sptask/_VirtualToPhysicalTask.s _VirtualToPhysicalTask 0x80088580 0x43
254 asm/non_matchings/boot/sptask/osSpTaskLoad.s osSpTaskLoad 0x8008868C 0x5A
407 asm/non_matchings/boot/vi/__osViInit.s __osViInit 0x80091AF0 0x48
408 asm/non_matchings/boot/viswapcontext/__osViSwapContext.s __osViSwapContext 0x80091C10 0xC0
409 asm/non_matchings/boot/pigetcmdq/osPiGetCmdQueue.s osPiGetCmdQueue 0x80091F10 0xC
410 asm/non_matchings/boot/cosf/__cosf.s asm/non_matchings/boot/cosf/cosf.s __cosf cosf 0x80091F40 0x5C
411 asm/non_matchings/boot/epiread/osEPiReadIo.s osEPiReadIo 0x800920B0 0x14
412 asm/non_matchings/boot/visetspecial/osViSetSpecialFeatures.s osViSetSpecialFeatures 0x80092100 0x58
413 asm/non_matchings/boot/coss/coss.s coss 0x80092260 0xC