2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CLINESEG
|
|
|
|
#define _CLINESEG
|
2022-09-29 23:55:38 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#include "Kyoto/Math/CLine.hpp"
|
2022-09-29 23:55:38 +00:00
|
|
|
#include "Kyoto/Math/CUnitVector3f.hpp"
|
|
|
|
#include "Kyoto/Math/CVector3f.hpp"
|
|
|
|
|
|
|
|
class CLineSeg : public CLine {
|
|
|
|
public:
|
|
|
|
CLineSeg(const CVector3f& start, const CVector3f& end)
|
2022-10-09 05:13:17 +00:00
|
|
|
: CLine(start, (end - start).AsNormalized()), x18_end(end) {}
|
2022-09-29 23:55:38 +00:00
|
|
|
|
|
|
|
const CVector3f& GetEndPoint() const { return x18_end; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
CVector3f x18_end;
|
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CLineSeg, 0x24)
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CLINESEG
|