mirror of
https://github.com/AxioDL/zeus.git
synced 2025-12-21 18:59:27 +00:00
Make CSphere::getSurfaceNormal const
This commit is contained in:
@@ -12,7 +12,7 @@ public:
|
|||||||
|
|
||||||
CSphere(const CVector3f& position, float radius) : position(position), radius(radius) {}
|
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)
|
inline bool intersects(const CSphere& other)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user