summaryrefslogtreecommitdiff
path: root/src/SSystem/SComponent/c_m3d_g_tri.cpp
blob: 5cf7cafd4eca198fe840c29bb7b17067ee8715a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
// Generated by dtk
// Translation Unit: c_m3d_g_tri.cpp
//

#include "SSystem/SComponent/c_m3d_g_tri.h"
#include "SSystem/SComponent/c_m3d.h"

/* 802527D4-80252878       .text __ct__8cM3dGTriFPC3VecPC3VecPC3Vec */
cM3dGTri::cM3dGTri(const Vec* pA, const Vec* pB, const Vec* pC) {
    mA = *pA;
    mB = *pB;
    mC = *pC;
    cM3d_CalcPla(&mA, &mB, &mC, &mNormal, &mD);
}

/* 80252878-802528A4       .text cross__8cM3dGTriCFPC8cM3dGCylP3Vec */
bool cM3dGTri::cross(const cM3dGCyl* pOther, Vec* pOut) const {
    return cM3d_Cross_CylTri(pOther, this, pOut);
}