Merge pull request #6 from lioncash/const

General: Mark member functions as const where applicable
This commit is contained in:
Phillip Stephens 2019-09-01 11:06:35 -07:00 committed by GitHub
commit 8c18c08abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ public:
CVector3f getSurfaceNormal(const CVector3f& coord) const { return (coord - position).normalized(); }
bool intersects(const CSphere& other) {
bool intersects(const CSphere& other) const {
float dist = (position - other.position).magnitude();
return dist < (radius + other.radius);
}