mirror of
https://github.com/AxioDL/zeus.git
synced 2025-07-04 12:15:56 +00:00
Make CSphere::getSurfaceNormal const
This commit is contained in:
parent
b420a1af93
commit
8c1ddd86b1
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user