mirror of
https://github.com/AxioDL/zeus.git
synced 2025-06-06 14:43:28 +00:00
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…
x
Reference in New Issue
Block a user