Make CSphere::getSurfaceNormal const

This commit is contained in:
Jack Andersen 2017-06-29 15:38:57 -10:00
parent b420a1af93
commit 8c1ddd86b1
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{