2021-03-29 00:10:25 +02:00
|
|
|
//
|
2021-03-28 22:49:05 +02:00
|
|
|
// Generated By: dol2asm
|
|
|
|
|
// Translation Unit: c_m3d_g_lin
|
2021-03-29 00:10:25 +02:00
|
|
|
//
|
2021-01-07 02:04:53 +01:00
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
#include "SSystem/SComponent/c_m3d_g_lin.h"
|
2021-03-28 22:49:05 +02:00
|
|
|
#include "dol2asm.h"
|
|
|
|
|
#include "dolphin/types.h"
|
2021-01-07 02:04:53 +01:00
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
//
|
2021-03-28 22:49:05 +02:00
|
|
|
// Declarations:
|
2021-03-29 00:10:25 +02:00
|
|
|
//
|
2021-03-28 22:49:05 +02:00
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
/* 8026F2A8-8026F2E8 0040+00 s=0 e=8 z=1 None .text __ct__8cM3dGLinFRC4cXyzRC4cXyz */
|
2021-04-08 16:01:29 +02:00
|
|
|
cM3dGLin::cM3dGLin(const cXyz& pStart, const cXyz& pEnd) : mStart(pStart), mEnd(pEnd) {}
|
2021-01-07 02:04:53 +01:00
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
/* 8026F2E8-8026F31C 0034+00 s=0 e=8 z=10 None .text SetStartEnd__8cM3dGLinFRC4cXyzRC4cXyz */
|
2021-03-31 00:50:18 +02:00
|
|
|
void cM3dGLin::SetStartEnd(const cXyz& pStart, const cXyz& pEnd) {
|
|
|
|
|
mStart = pStart;
|
|
|
|
|
mEnd = pEnd;
|
2021-01-07 02:04:53 +01:00
|
|
|
}
|
|
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
/* 8026F31C-8026F350 0034+00 s=0 e=7 z=4 None .text SetStartEnd__8cM3dGLinFRC3VecRC3Vec */
|
2021-03-31 00:50:18 +02:00
|
|
|
void cM3dGLin::SetStartEnd(const Vec& pStart, const Vec& pEnd) {
|
|
|
|
|
mStart = pStart;
|
|
|
|
|
mEnd = pEnd;
|
2021-01-07 02:04:53 +01:00
|
|
|
}
|
2021-03-28 22:49:05 +02:00
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
/* 8026F350-8026F3C0 0070+00 s=0 e=3 z=0 None .text CalcPos__8cM3dGLinCFP3Vecf */
|
2021-03-31 00:50:18 +02:00
|
|
|
void cM3dGLin::CalcPos(Vec* pOut, f32 pScale) const {
|
|
|
|
|
Vec tmp;
|
|
|
|
|
PSVECSubtract(&mEnd, &mStart, &tmp);
|
|
|
|
|
PSVECScale(&tmp, &tmp, pScale);
|
|
|
|
|
PSVECAdd(&tmp, &mStart, pOut);
|
2021-03-28 22:49:05 +02:00
|
|
|
}
|
|
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
/* 8026F3C0-8026F3DC 001C+00 s=0 e=1 z=0 None .text SetEnd__8cM3dGLinFRC4cXyz */
|
2021-03-31 00:50:18 +02:00
|
|
|
void cM3dGLin::SetEnd(const cXyz& pEnd) {
|
|
|
|
|
mEnd = pEnd;
|
2021-03-28 22:49:05 +02:00
|
|
|
}
|