mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-21 14:07:29 -04:00
Copy new c_m3d progress from TP decomp
This commit is contained in:
@@ -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*);
|
||||
|
||||
@@ -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); }
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user