mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 23:05:36 -04:00
5c83d2532c
* data for c_angle * data c_sxyz * partially migrated c_xyz data * c_xyz data * c_xyz data decomp * c_math data * c_math data * c_lib data, some cleanup * rename some unnamed functions and create header for them * header for string functions * format and fix fabsf * cleanup * remove more unneded function prototypes * move fpclassify to math.h
34 lines
945 B
C++
34 lines
945 B
C++
/* c_m3d_g_tri.cpp autogenerated by split.py v0.3 at 2021-01-01 14:55:53.593962 */
|
|
|
|
#include "SComponent/c_m3d_g_tri.h"
|
|
#include "SComponent/c_m3d.h"
|
|
|
|
// cross__8cM3dGTriCFPC8cM3dGCylP3Vec
|
|
bool cM3dGTri::cross(const cM3dGCyl* pCylinder, Vec* out) const {
|
|
return cM3d_Cross_CylTri(pCylinder, this, out);
|
|
}
|
|
|
|
// setPos__8cM3dGTriFPC3VecPC3VecPC3Vec
|
|
void cM3dGTri::setPos(const Vec* pA, const Vec* pB, const Vec* pC) {
|
|
mA = *pA;
|
|
mB = *pB;
|
|
mC = *pC;
|
|
cM3d_CalcPla(&mA, &mB, &mC, &mPlane.mNormal, &mPlane.mD);
|
|
}
|
|
|
|
// setBg__8cM3dGTriFPC3VecPC3VecPC3VecPC8cM3dGPla
|
|
void cM3dGTri::setBg(const Vec* pA, const Vec* pB, const Vec* pC, const cM3dGPla* pPlane) {
|
|
mA = *pA;
|
|
mB = *pB;
|
|
mC = *pC;
|
|
mPlane.Set(pPlane);
|
|
}
|
|
|
|
// set__8cM3dGTriFPC3VecPC3VecPC3VecPC3Vec
|
|
void cM3dGTri::set(const Vec* pA, const Vec* pB, const Vec* pC, const Vec* pNormal) {
|
|
mA = *pA;
|
|
mB = *pB;
|
|
mC = *pC;
|
|
mPlane.SetupNP(*pNormal, *pA);
|
|
}
|