mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-11 03:47:48 +00:00
Halfway match CAABox; continue CBallCamera
Former-commit-id: 602109d8f0
This commit is contained in:
23
include/Kyoto/Math/CLineSeg.hpp
Normal file
23
include/Kyoto/Math/CLineSeg.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef _CLINESEG_HPP
|
||||
#define _CLINESEG_HPP
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include "Kyoto/Math/CUnitVector3f.hpp"
|
||||
#include "Kyoto/Math/CVector3f.hpp"
|
||||
#include "Kyoto/Math/CLine.hpp"
|
||||
|
||||
class CLineSeg : public CLine {
|
||||
public:
|
||||
CLineSeg(const CVector3f& start, const CVector3f& end)
|
||||
: CLine(start, (end - start).AsNormalized())
|
||||
, x18_end(end) {}
|
||||
|
||||
const CVector3f& GetEndPoint() const { return x18_end; }
|
||||
|
||||
private:
|
||||
CVector3f x18_end;
|
||||
};
|
||||
CHECK_SIZEOF(CLineSeg, 0x24)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user