summaryrefslogtreecommitdiff
path: root/include/d/col/c/c_m3d_g_tri.h
blob: dc90bbb71395b29246c0b0efb847476b9b165ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef C_M3D_G_TRI_H
#define C_M3D_G_TRI_H

#include "common.h"
#include "d/col/c/c_m3d_g_pla.h"
#include "m/m_vec.h"

class cM3dGTri : public cM3dGPla {
    typedef nw4r::math::VEC3 VecType;

public:
    /* 0x10 */ VecType mA;
    /* 0x1C */ VecType mB;
    /* 0x28 */ VecType mC;

    const mVec3_c &GetPntA() const {
        return *(mVec3_c *)&mA;
    }
    const mVec3_c &GetPntB() const {
        return *(mVec3_c *)&mB;
    }
    const mVec3_c &GetPntC() const {
        return *(mVec3_c *)&mC;
    }

    cM3dGTri() {}
    void SetPos(const VecType *, const VecType *, const VecType *);

    void SetBg(const VecType *, const VecType *, const VecType *, const cM3dGPla *pla);

    bool cross(const cM3dGLin &lin, VecType *xyz, bool param_2, bool param_3) const {
        return cM3d_Cross_LinTri(lin, *this, xyz, param_2, param_3);
    }
};

#endif