added missing const

This commit is contained in:
h4570
2022-08-14 20:26:41 +02:00
parent 65f40091db
commit 156973714b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class Ray {
* @return Vec4 point of intersection
*/
bool intersectBox(const Vec4& minCorner, const Vec4& maxCorner,
float& distance) const;
const float& distance) const;
/** Returns inverse direction */
Vec4 invDir() const;
+1 -1
View File
@@ -32,7 +32,7 @@ float Ray::distanceToPoint(const Vec4& point) const {
}
bool Ray::intersectBox(const Vec4& minCorner, const Vec4& maxCorner,
float& distance) const {
const float& distance) const {
auto inv = invDir();
inv.normalize();