diff options
Diffstat (limited to '')
-rw-r--r-- | src/Tracer.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Tracer.h b/src/Tracer.h index ec87d449e..55c21546b 100644 --- a/src/Tracer.h +++ b/src/Tracer.h @@ -3,6 +3,8 @@ #include "Vector3.h" +#include <array> + @@ -61,10 +63,12 @@ private: /// Return 1 through 6 for the following block faces, repectively: -x, -z, x, z, y, -y int GetHitNormal( const Vector3f & start, const Vector3f & end, const Vector3i & a_BlockPos); - float SigNum( float a_Num); - cWorld* m_World; + /// Signum function + int SigNum(float a_Num); + + cWorld * m_World; - Vector3f m_NormalTable[6]; + static const std::array<const Vector3f, 6> & m_NormalTable(void); Vector3f dir; Vector3f tDelta; |