Copy new c_m3d progress from TP decomp

This commit is contained in:
LagoLunatic
2024-02-26 22:00:18 -05:00
parent 53373a5019
commit bab128d8a8
5 changed files with 66 additions and 24 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class cXyz;
struct cM3d_Range;
struct Vec;
extern f32 G_CM3D_F_ABS_MIN;
extern const f32 G_CM3D_F_ABS_MIN;
void cM3d_InDivPos1(const Vec*, const Vec*, f32, Vec*);
void cM3d_InDivPos2(const Vec*, const Vec*, f32, Vec*);
+1 -1
View File
@@ -27,7 +27,7 @@ public:
SetR(src.mRadius);
}
void SetCps(const cM3dGCps& cps) {
Set(cps.mStart, cps.mEnd, cps.mRadius);
Set(cps.GetStart(), cps.GetEnd(), cps.GetR());
}
bool Cross(cM3dGCps const* cps, cXyz* xyz) const { return cM3d_Cross_CpsCps(*this, *cps, xyz); }
bool Cross(cM3dGCyl const* cyl, cXyz* xyz) const { return cM3d_Cross_CpsCyl(*this, *cyl, xyz); }
+3 -3
View File
@@ -6,12 +6,12 @@
// Line
class cM3dGLin {
// private:
public:
private:
/* 0x00 */ cXyz mStart;
/* 0x0C */ cXyz mEnd;
/* 0x18 vtable */
public:
cM3dGLin() {}
cM3dGLin(const cXyz&, const cXyz&);
virtual ~cM3dGLin() {}
@@ -38,7 +38,7 @@ public:
cXyz* GetEndP() { return &mEnd; }
const cXyz& GetEnd() const { return mEnd; }
cXyz& GetEnd() { return mEnd; }
void GetLen() const { /* TODO */ }
f32 GetLen() const { return VECDistance(&mStart, &mEnd); }
}; // Size = 0x1C
STATIC_ASSERT(0x1C == sizeof(cM3dGLin));