From 8c1ddd86b194d046a41978eed93812841587618c Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 29 Jun 2017 15:38:57 -1000 Subject: [PATCH] Make CSphere::getSurfaceNormal const --- include/zeus/CSphere.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/zeus/CSphere.hpp b/include/zeus/CSphere.hpp index d5e9046..fac6f28 100644 --- a/include/zeus/CSphere.hpp +++ b/include/zeus/CSphere.hpp @@ -12,7 +12,7 @@ public: CSphere(const CVector3f& position, float radius) : position(position), radius(radius) {} - inline CVector3f getSurfaceNormal(const CVector3f& coord) { return (position - coord).normalized(); } + inline CVector3f getSurfaceNormal(const CVector3f& coord) const { return (position - coord).normalized(); } inline bool intersects(const CSphere& other) {