mirror of
https://github.com/zeldaret/tp
synced 2026-06-08 04:17:17 -04:00
8fd9f2ab5d
* start JSystem * JKRAram and JUTGamePad * started heap and thread * more JKernel * mostly finished JKernel * delete unused asm * JKRFileFinder * delete unused asm and match findNextFile * format * fix mtx_vec
30 lines
780 B
C++
30 lines
780 B
C++
#ifndef C_M3D_G_LIN_H
|
|
#define C_M3D_G_LIN_H
|
|
|
|
#include "SSystem/SComponent/c_xyz.h"
|
|
#include "dolphin/mtx/vec.h"
|
|
#include "dolphin/types.h"
|
|
|
|
// Line
|
|
class cM3dGLin {
|
|
// private:
|
|
public:
|
|
cXyz mStart;
|
|
cXyz mEnd;
|
|
|
|
cM3dGLin() {}
|
|
cM3dGLin(const cXyz&, const cXyz&);
|
|
virtual ~cM3dGLin() {}
|
|
void SetStartEnd(const cXyz&, const cXyz&);
|
|
void SetStartEnd(const Vec&, const Vec&);
|
|
void CalcPos(Vec*, f32) const;
|
|
void CalcVec(Vec* pOut) const { PSVECSubtract(&this->mEnd, &this->mStart, pOut); }
|
|
void SetEnd(const cXyz&);
|
|
const cXyz& GetStartP(void) const { return mStart; }
|
|
cXyz& GetStartP(void) { return mStart; }
|
|
const cXyz& GetEndP(void) const { return mEnd; }
|
|
cXyz& GetEndP(void) { return mEnd; }
|
|
};
|
|
|
|
#endif /* C_M3D_G_LIN_H */
|