Files
tp/libs/SSystem/SComponent/c_m3d_g_tri.cpp
T

44 lines
1.2 KiB
C++
Raw Normal View History

2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Generated By: dol2asm
// Translation Unit: c_m3d_g_tri
2021-04-01 02:07:58 +02:00
//
2021-01-07 02:04:53 +01:00
2021-04-01 02:07:58 +02:00
#include "SSystem/SComponent/c_m3d_g_tri.h"
2021-04-08 16:01:29 +02:00
#include "SSystem/SComponent/c_m3d.h"
2021-03-28 22:49:05 +02:00
#include "dolphin/types.h"
2021-01-07 02:04:53 +01:00
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Declarations:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 8026F7B0-8026F7DC 26A0F0 002C+00 0/0 1/1 0/0 .text cross__8cM3dGTriCFPC8cM3dGCylP3Vec
*/
2021-04-08 16:01:29 +02:00
bool cM3dGTri::cross(const cM3dGCyl* pCylinder, Vec* out) const {
return cM3d_Cross_CylTri(pCylinder, this, out);
2021-01-07 02:04:53 +01:00
}
2021-04-06 18:00:35 +02:00
/* 8026F7DC-8026F85C 26A11C 0080+00 0/0 0/0 6/6 .text setPos__8cM3dGTriFPC3VecPC3VecPC3Vec */
2021-04-08 16:01:29 +02:00
void cM3dGTri::setPos(const Vec* pA, const Vec* pB, const Vec* pC) {
mA = *pA;
mB = *pB;
mC = *pC;
2021-06-13 00:20:45 +02:00
cM3d_CalcPla(&mA, &mB, &mC, &mNormal, &mD);
2021-01-07 02:04:53 +01:00
}
2021-04-06 18:00:35 +02:00
/* 8026F85C-8026F8C8 26A19C 006C+00 0/0 2/2 0/0 .text
2021-04-01 02:07:58 +02:00
* setBg__8cM3dGTriFPC3VecPC3VecPC3VecPC8cM3dGPla */
2021-04-08 16:01:29 +02:00
void cM3dGTri::setBg(const Vec* pA, const Vec* pB, const Vec* pC, const cM3dGPla* pPlane) {
mA = *pA;
mB = *pB;
mC = *pC;
2021-06-13 00:20:45 +02:00
Set(pPlane);
2021-01-07 02:04:53 +01:00
}
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 8026F8C8-8026F93C 26A208 0074+00 0/0 1/1 0/0 .text set__8cM3dGTriFPC3VecPC3VecPC3VecPC3Vec */
2021-04-08 16:01:29 +02:00
void cM3dGTri::set(const Vec* pA, const Vec* pB, const Vec* pC, const Vec* pNormal) {
mA = *pA;
mB = *pB;
mC = *pC;
2021-06-13 00:20:45 +02:00
SetupNP(*pNormal, *pA);
2021-03-28 22:49:05 +02:00
}