mirror of https://github.com/AxioDL/zeus.git
Merge pull request #6 from lioncash/const
General: Mark member functions as const where applicable
This commit is contained in:
commit
8c18c08abb
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue