diff options
author | Mattes D <github@xoft.cz> | 2015-05-08 21:52:41 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-08 21:52:41 +0200 |
commit | 9329c2c2cb16d3ddbd3f810441752271da10f127 (patch) | |
tree | 7e7584d9d735a310e3b7b650ab2f8bc577103ce7 /src/Tracer.h | |
parent | Fix build URLs, now .tar.gz (diff) | |
parent | Added float comparison warning overrides to Vector3::hasNonZeroLength (diff) | |
download | cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar.gz cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar.bz2 cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar.lz cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar.xz cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.tar.zst cuberite-9329c2c2cb16d3ddbd3f810441752271da10f127.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Tracer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Tracer.h b/src/Tracer.h index ec87d449e..31531719f 100644 --- a/src/Tracer.h +++ b/src/Tracer.h @@ -3,6 +3,8 @@ #include "Vector3.h" +#include <array> + @@ -61,10 +63,11 @@ 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); + /// 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; |