summaryrefslogtreecommitdiffstats
path: root/src/Tracer.h
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-05-05 22:38:08 +0200
committerworktycho <work.tycho@gmail.com>2015-05-05 22:38:08 +0200
commitf3101f1d047683a799b4ea439a05d7c7e8fefe86 (patch)
tree6468d564a3b55970210ef5d17cbf7300d4773661 /src/Tracer.h
parentMerge pull request #1939 from SafwatHalaby/Polising (diff)
parentChanged fabs() to std::abs() (diff)
downloadcuberite-f3101f1d047683a799b4ea439a05d7c7e8fefe86.tar
cuberite-f3101f1d047683a799b4ea439a05d7c7e8fefe86.tar.gz
cuberite-f3101f1d047683a799b4ea439a05d7c7e8fefe86.tar.bz2
cuberite-f3101f1d047683a799b4ea439a05d7c7e8fefe86.tar.lz
cuberite-f3101f1d047683a799b4ea439a05d7c7e8fefe86.tar.xz
cuberite-f3101f1d047683a799b4ea439a05d7c7e8fefe86.tar.zst
cuberite-f3101f1d047683a799b4ea439a05d7c7e8fefe86.zip
Diffstat (limited to '')
-rw-r--r--src/Tracer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Tracer.h b/src/Tracer.h
index ec87d449e..ec23b340e 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;
Vector3f dir;
Vector3f tDelta;