mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-11 02:27:41 +00:00
Halfway match CAABox; continue CBallCamera
Former-commit-id: 602109d8f0
This commit is contained in:
21
include/Kyoto/Math/CLine.hpp
Normal file
21
include/Kyoto/Math/CLine.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef _CLINE_HPP
|
||||
#define _CLINE_HPP
|
||||
|
||||
#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;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user