Halfway match CAABox; continue CBallCamera

Former-commit-id: 602109d8f0
This commit is contained in:
2022-09-29 19:55:38 -04:00
parent 8f3807da18
commit 1f56cefe8c
41 changed files with 1023 additions and 173 deletions

View File

@@ -0,0 +1,27 @@
#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