mirror of
https://github.com/zeldaret/tp
synced 2026-07-10 07:06:50 -04:00
all d_a_alink functions attempted (#2239)
* more work on alink * alink wip * little more work * setEyeMove * 14 left * auto ground hit * all d_a_alink functions attempted
This commit is contained in:
@@ -85,7 +85,7 @@ void cM3d_CalcVecAngle(const Vec&, short*, short*);
|
||||
void cM3d_CalcVecZAngle(const Vec&, csXyz*);
|
||||
static void cM3d_PlaneCrossLineProcWork(f32, f32, f32, f32, f32, f32, f32, f32*, f32*);
|
||||
static int cM3d_2PlaneCrossLine(const cM3dGPla&, const cM3dGPla&, cM3dGLin*);
|
||||
bool cM3d_3PlaneCrossPos(const cM3dGPla&, const cM3dGPla&, const cM3dGPla&, Vec*);
|
||||
BOOL cM3d_3PlaneCrossPos(const cM3dGPla&, const cM3dGPla&, const cM3dGPla&, 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*);
|
||||
|
||||
@@ -26,15 +26,22 @@ public:
|
||||
cXyz* GetNP() { return &mNormal; }
|
||||
const cXyz* GetNP() const { return &mNormal; }
|
||||
f32 GetD() const { return mD; }
|
||||
|
||||
void SetupFrom3Vtx(const Vec* v1, const Vec* v2, const Vec* v3) {
|
||||
cM3d_CalcPla(v1, v2, v3, &mNormal, &mD);
|
||||
}
|
||||
|
||||
f32 getCrossY_NonIsZero(const cXyz *param_1) {
|
||||
return ((-mNormal.x * param_1->x - mNormal.z * param_1->z) - mD) / mNormal.y;
|
||||
}
|
||||
|
||||
bool cross(cM3dGLin const& line, Vec& point) {
|
||||
return cM3d_Cross_LinPla(&line, this, &point, true, true);
|
||||
}
|
||||
|
||||
f32 getSignedLenPos(const cXyz* param_0) const {
|
||||
return cM3d_SignedLenPlaAndPos(this, param_0);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user