Merge pull request #6 from lioncash/const

General: Mark member functions as const where applicable
This commit is contained in:
2019-09-01 11:06:35 -07:00
committed by GitHub

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);
}