Match and link CMRay

Former-commit-id: 166a545542
This commit is contained in:
2022-10-06 08:36:33 -07:00
parent 64037a01e3
commit 61eee21924
4 changed files with 49 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
#ifndef __CMRAY_HPP__
#define __CMRAY_HPP__
#include "Kyoto/Math/CVector3f.hpp"
class CTransform4f;
class CMRay {
public:
CMRay(const CVector3f& start, const CVector3f& end, float, float);
CMRay(const CVector3f& start, const CVector3f& end, float);
CMRay GetInvUnscaledTransformRay(const CTransform4f&) const;
private:
CVector3f mStart;
CVector3f mEnd;
CVector3f mDelta;
float mLength;
float mInvLength;
CVector3f mDir;
};
#endif // __CMRAY_HPP__