d_a_wall OK

This commit is contained in:
LagoLunatic
2024-02-16 14:19:33 -05:00
parent 3cf49ac324
commit 32728226a2
6 changed files with 45 additions and 47 deletions
+7 -2
View File
@@ -44,12 +44,17 @@ public:
f32 getSignedLenPos(const cXyz* param_1) const {
return cM3d_SignedLenPlaAndPos(this, param_1);
}
void Set(const cM3dGPla* pla) {
mNormal = *pla->GetNP();
mD = pla->GetD();
}
void SetupFrom3Vtx(const Vec* a, const Vec* b, const Vec* c) {
cM3d_CalcPla(a, b, c, &mNormal, &mD);
}
virtual ~cM3dGPla() {}
// TODO
void Set(const cM3dGPla*) {}
void SetupFrom3Vtx(const Vec*, const Vec*, const Vec*) {}
cM3dGPla(const cXyz*, f32) {}
void cross(const cM3dGLin&, Vec&) const {}
}; // Size: 0x14
+10 -3
View File
@@ -50,10 +50,17 @@ public:
mA = *a;
mB = *b;
mC = *c;
*((cM3dGPla*)this) = *pla;
Set(pla);
}
void setPos(const Vec* a, const Vec* b, const Vec* c) {
mA = *a;
mB = *b;
mC = *c;
setUp();
}
void setUp() {
SetupFrom3Vtx(&mA, &mB, &mC);
}
void setPos(const Vec*, const Vec*, const Vec*) {}
void setUp() {}
~cM3dGTri() {}
}; // Size: 0x38