mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-10 07:07:41 +00:00
Halfway match CAABox; continue CBallCamera
Former-commit-id: 602109d8f0
This commit is contained in:
27
include/Kyoto/Math/CTri.hpp
Normal file
27
include/Kyoto/Math/CTri.hpp
Normal 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
|
||||
Reference in New Issue
Block a user