SSurface: Make IntersectsRay() a const member function

This commit is contained in:
Lioncash
2020-06-21 19:44:22 -04:00
parent 5b0ae09cf3
commit 2b7513b156
6 changed files with 25 additions and 25 deletions

View File

@@ -3,7 +3,7 @@
#include "Core/CRayCollisionTester.h"
#include <Common/Math/MathUtil.h>
std::pair<bool,float> SSurface::IntersectsRay(const CRay& rkRay, bool AllowBackfaces, float LineThreshold)
std::pair<bool,float> SSurface::IntersectsRay(const CRay& rkRay, bool AllowBackfaces, float LineThreshold) const
{
bool Hit = false;
float HitDist = 0.0f;

View File

@@ -32,7 +32,7 @@ struct SSurface
SSurface() = default;
std::pair<bool,float> IntersectsRay(const CRay& rkRay, bool AllowBackfaces = false, float LineThreshold = 0.02f);
std::pair<bool,float> IntersectsRay(const CRay& rkRay, bool AllowBackfaces = false, float LineThreshold = 0.02f) const;
};
#endif // SSURFACE_H