mirror of
https://github.com/zeldaret/tp
synced 2026-07-01 20:20:21 -04:00
some c_m3d (#97)
* decompiled some bgs_chk funcs * c_m3d_g * c_math progress * remove duplicate SComponent headers * move some variables and decompile a function * some inlined from debug * cM3d_2PlaneLinePosNearPos * fix fabsf and decompile cM3d_CrawVec * format * cleanup * more cleanup Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
+27
-27
@@ -6,6 +6,7 @@
|
||||
#include "SComponent/c_m3d_g_cyl.h"
|
||||
#include "SComponent/c_m3d_g_lin.h"
|
||||
#include "SComponent/c_m3d_g_pla.h"
|
||||
#include "SComponent/c_m3d_g_sph.h"
|
||||
#include "SComponent/c_m3d_g_tri.h"
|
||||
#include "SComponent/c_sxyz.h"
|
||||
#include "SComponent/c_xyz.h"
|
||||
@@ -13,36 +14,35 @@
|
||||
|
||||
struct cM3d_Range;
|
||||
|
||||
void cM3d_InDivPos1(const Vec*, const Vec*, float, Vec*);
|
||||
void cM3d_InDivPos2(const Vec*, const Vec*, float, Vec*);
|
||||
float cM3d_Len2dSq(float, float, float, float);
|
||||
bool cM3d_Len2dSqPntAndSegLine(float, float, float, float, float, float, float*, float*, float*);
|
||||
bool cM3d_Len3dSqPntAndSegLine(const cM3dGLin*, const Vec*, Vec*, float*);
|
||||
float cM3d_SignedLenPlaAndPos(const cM3dGPla*, const Vec*);
|
||||
float cM3d_VectorProduct2d(float, float, float, float, float, float);
|
||||
void cM3d_InDivPos1(const Vec*, const Vec*, f32, Vec*);
|
||||
void cM3d_InDivPos2(const Vec*, const Vec*, f32, Vec*);
|
||||
f32 cM3d_Len2dSq(f32, f32, f32, f32);
|
||||
bool cM3d_Len2dSqPntAndSegLine(f32, f32, f32, f32, f32, f32, f32*, f32*, f32*);
|
||||
bool cM3d_Len3dSqPntAndSegLine(const cM3dGLin*, const Vec*, Vec*, f32*);
|
||||
f32 cM3d_SignedLenPlaAndPos(const cM3dGPla*, const Vec*);
|
||||
f32 cM3d_VectorProduct2d(f32, f32, f32, f32, f32, f32);
|
||||
void cM3d_VectorProduct(const cXyz*, const cXyz*, const cXyz*, cXyz*);
|
||||
void cM3d_CalcPla(const Vec*, const Vec*, const Vec*, Vec*, float*);
|
||||
void cM3d_CalcPla(const Vec*, const Vec*, const Vec*, Vec*, f32*);
|
||||
bool cM3d_Cross_AabAab(const cM3dGAab*, const cM3dGAab*);
|
||||
bool cM3d_Cross_AabCyl(const cM3dGAab*, const cM3dGCyl*);
|
||||
bool cM3d_Cross_AabSph(const cM3dGAab*, const cM3dGSph*);
|
||||
int cM3d_Check_LinLin(const cM3dGLin*, const cM3dGLin*, float*, float*);
|
||||
bool cM3d_CrossInfLineVsInfPlane_proc(float, float, const Vec*, const Vec*, Vec*);
|
||||
int cM3d_Check_LinLin(const cM3dGLin*, const cM3dGLin*, f32*, f32*);
|
||||
bool cM3d_CrossInfLineVsInfPlane_proc(f32, f32, const Vec*, const Vec*, Vec*);
|
||||
bool cM3d_Cross_LinPla(const cM3dGLin*, const cM3dGPla*, Vec*, bool, bool);
|
||||
bool cM3d_Cross_MinMaxBoxLine(const Vec*, const Vec*, const Vec*, const Vec*);
|
||||
bool cM3d_InclusionCheckPosIn3PosBox3d(const Vec*, const Vec*, const Vec*, const Vec*, float);
|
||||
bool cM3d_InclusionCheckPosIn3PosBox2d(float, float, float, float, float, float, float, float,
|
||||
float);
|
||||
bool cM3d_CrossX_Tri(const cM3dGTri*, const Vec*, float);
|
||||
bool cM3d_InclusionCheckPosIn3PosBox3d(const Vec*, const Vec*, const Vec*, const Vec*, f32);
|
||||
bool cM3d_InclusionCheckPosIn3PosBox2d(f32, f32, f32, f32, f32, f32, f32, f32, f32);
|
||||
bool cM3d_CrossX_Tri(const cM3dGTri*, const Vec*, f32);
|
||||
bool cM3d_CrossX_Tri(const cM3dGTri*, const Vec*);
|
||||
bool cM3d_CrossX_LinTri_proc(const cM3dGTri*, const Vec*);
|
||||
bool cM3d_CrossY_Tri(const cM3dGTri*, const Vec*);
|
||||
bool cM3d_CrossY_LinTri_proc(const cM3dGTri*, const Vec*);
|
||||
bool cM3d_CrossY_Tri(const Vec&, const Vec&, const Vec&, const cM3dGPla&, const Vec*);
|
||||
bool cM3d_CrossY_Tri_Front(const Vec&, const Vec&, const Vec&, const Vec*);
|
||||
bool cM3d_CrossY_Tri(const cM3dGTri*, const Vec*, float*);
|
||||
bool cM3d_CrossY_Tri(const cM3dGTri*, const Vec*, float);
|
||||
bool cM3d_CrossY_Tri(const cM3dGTri*, const Vec*, const cM3d_Range*, float*);
|
||||
bool cM3d_CrossZ_Tri(const cM3dGTri*, const Vec*, float);
|
||||
bool cM3d_CrossY_Tri(const cM3dGTri*, const Vec*, f32*);
|
||||
bool cM3d_CrossY_Tri(const cM3dGTri*, const Vec*, f32);
|
||||
bool cM3d_CrossY_Tri(const cM3dGTri*, const Vec*, const cM3d_Range*, f32*);
|
||||
bool cM3d_CrossZ_Tri(const cM3dGTri*, const Vec*, f32);
|
||||
bool cM3d_CrossZ_Tri(const cM3dGTri*, const Vec*);
|
||||
bool cM3d_CrossZ_LinTri_proc(const cM3dGTri*, const Vec*);
|
||||
bool cM3d_Cross_LinTri(const cM3dGLin*, const cM3dGTri*, Vec*, bool, bool);
|
||||
@@ -50,14 +50,14 @@ bool cM3d_Cross_LinTri_Easy(const cM3dGTri*, const Vec*);
|
||||
bool cM3d_Cross_SphPnt(const cM3dGSph*, const Vec*);
|
||||
bool cM3d_Cross_LinSph(const cM3dGLin*, const cM3dGSph*, Vec*);
|
||||
int cM3d_Cross_LinSph_CrossPos(const cM3dGSph&, const cM3dGLin&, Vec*, Vec*);
|
||||
bool cM3d_Cross_CylSph(const cM3dGCyl*, const cM3dGSph*, float*);
|
||||
bool cM3d_Cross_CylSph(const cM3dGCyl*, const cM3dGSph*, Vec*, float*);
|
||||
bool cM3d_Cross_SphSph(const cM3dGSph*, const cM3dGSph*, float*);
|
||||
bool cM3d_Cross_SphSph(const cM3dGSph*, const cM3dGSph*, float*, float*);
|
||||
void cM3d_Cross_SphSph(const cM3dGSph*, const cM3dGSph*, Vec*);
|
||||
bool cM3d_Cross_CylSph(const cM3dGCyl*, const cM3dGSph*, f32*);
|
||||
bool cM3d_Cross_CylSph(const cM3dGCyl*, const cM3dGSph*, Vec*, f32*);
|
||||
bool cM3d_Cross_SphSph(const cM3dGSph*, const cM3dGSph*, f32*);
|
||||
bool cM3d_Cross_SphSph(const cM3dGSph*, const cM3dGSph*, f32*, f32*);
|
||||
bool cM3d_Cross_SphSph(const cM3dGSph*, const cM3dGSph*, Vec*);
|
||||
void cM3d_CalcSphVsTriCrossPoint(const cM3dGSph*, const cM3dGTri*, Vec*);
|
||||
bool cM3d_Cross_SphTri(const cM3dGSph*, const cM3dGTri*, Vec*);
|
||||
bool cM3d_Cross_CylCyl(const cM3dGCyl*, const cM3dGCyl*, float*);
|
||||
bool cM3d_Cross_CylCyl(const cM3dGCyl*, const cM3dGCyl*, f32*);
|
||||
bool cM3d_Cross_CylCyl(const cM3dGCyl*, const cM3dGCyl*, Vec*);
|
||||
bool cM3d_Cross_CylTri(const cM3dGCyl*, const cM3dGTri*, Vec*);
|
||||
int cM3d_Cross_CylLin(const cM3dGCyl*, const cM3dGLin*, Vec*, Vec*);
|
||||
@@ -71,11 +71,11 @@ bool cM3d_Cross_TriTri(const cM3dGTri&, const cM3dGTri&, Vec*);
|
||||
bool cM3d_Cross_CpsTri(const cM3dGCps&, cM3dGTri, Vec*);
|
||||
void cM3d_CalcVecAngle(const Vec&, short*, short*);
|
||||
void cM3d_CalcVecZAngle(const Vec&, csXyz*);
|
||||
void cM3d_PlaneCrossLineProcWork(float, float, float, float, float, float, float, float*, float*);
|
||||
void cM3d_PlaneCrossLineProcWork(f32, f32, f32, f32, f32, f32, f32, f32*, f32*);
|
||||
int cM3d_2PlaneCrossLine(const cM3dGPla&, const cM3dGPla&, cM3dGLin*);
|
||||
bool cM3d_3PlaneCrossPos(const cM3dGPla&, const cM3dGPla&, const cM3dGPla&, Vec*);
|
||||
float cM3d_lineVsPosSuisenCross(const cM3dGLin*, const Vec*, Vec*);
|
||||
float cM3d_lineVsPosSuisenCross(const Vec&, const Vec&, const Vec&, Vec*);
|
||||
f32 cM3d_lineVsPosSuisenCross(const cM3dGLin*, const Vec*, Vec*);
|
||||
f32 cM3d_lineVsPosSuisenCross(const Vec&, const Vec&, const Vec&, Vec*);
|
||||
int cM3d_2PlaneLinePosNearPos(const cM3dGPla&, const cM3dGPla&, const Vec*, Vec*);
|
||||
void cM3d_CrawVec(const Vec&, const Vec&, Vec*);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user