mirror of https://github.com/PrimeDecomp/prime.git
28 lines
612 B
C++
28 lines
612 B
C++
|
#ifndef _CTRI_HPP
|
||
|
#define _CTRI_HPP
|
||
|
|
||
|
#include "types.h"
|
||
|
|
||
|
#include "Kyoto/Math/CPlane.hpp"
|
||
|
#include "Kyoto/Math/CVector3f.hpp"
|
||
|
|
||
|
class CTri {
|
||
|
public:
|
||
|
CTri(const CVector3f& a, const CVector3f& b, const CVector3f& c)
|
||
|
: x0_plane(a, b, c), x10_a(a), x1c_b(b), x28_c(c) {}
|
||
|
|
||
|
const CPlane& GetPlane() const { return x0_plane; }
|
||
|
const CVector3f& GetPointA() const { return x10_a; }
|
||
|
const CVector3f& GetPointB() const { return x1c_b; }
|
||
|
const CVector3f& GetPointC() const { return x28_c; }
|
||
|
|
||
|
private:
|
||
|
CPlane x0_plane;
|
||
|
CVector3f x10_a;
|
||
|
CVector3f x1c_b;
|
||
|
CVector3f x28_c;
|
||
|
};
|
||
|
CHECK_SIZEOF(CTri, 0x34)
|
||
|
|
||
|
#endif
|