prime/include/Collision/CMRay.hpp
Phillip Stephens 61eee21924 Match and link CMRay
Former-commit-id: 166a5455421a23c60405f1406aa9649fb3d30f53
2022-10-06 08:36:53 -07:00

23 lines
469 B
C++

#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__