2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CLINE
|
|
|
|
#define _CLINE
|
2022-09-29 23:55:38 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "Kyoto/Math/CUnitVector3f.hpp"
|
|
|
|
#include "Kyoto/Math/CVector3f.hpp"
|
|
|
|
|
|
|
|
class CLine {
|
|
|
|
public:
|
|
|
|
CLine(const CVector3f& origin, const CUnitVector3f& dir) : x0_origin(origin), xc_dir(dir) {}
|
|
|
|
|
|
|
|
const CVector3f& GetRefPoint() const { return x0_origin; }
|
|
|
|
const CUnitVector3f& GetNormal() const { return xc_dir; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
CVector3f x0_origin;
|
|
|
|
CUnitVector3f xc_dir;
|
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CLINE
|