summaryrefslogtreecommitdiffstats
path: root/source/cTracer.h
diff options
context:
space:
mode:
authorcedeel@gmail.com <cedeel@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-14 15:06:06 +0200
committercedeel@gmail.com <cedeel@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-14 15:06:06 +0200
commit92c59963f82f81aa3202657e7fdbb2592924ede3 (patch)
treeb7eb2474528a4998fa102e3ec9119b908cee08b4 /source/cTracer.h
parentAdded HOOK_WEATHER_CHANGE. (diff)
downloadcuberite-92c59963f82f81aa3202657e7fdbb2592924ede3.tar
cuberite-92c59963f82f81aa3202657e7fdbb2592924ede3.tar.gz
cuberite-92c59963f82f81aa3202657e7fdbb2592924ede3.tar.bz2
cuberite-92c59963f82f81aa3202657e7fdbb2592924ede3.tar.lz
cuberite-92c59963f82f81aa3202657e7fdbb2592924ede3.tar.xz
cuberite-92c59963f82f81aa3202657e7fdbb2592924ede3.tar.zst
cuberite-92c59963f82f81aa3202657e7fdbb2592924ede3.zip
Diffstat (limited to '')
-rw-r--r--source/cTracer.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/source/cTracer.h b/source/cTracer.h
index 08ebc72e5..fa9d3c673 100644
--- a/source/cTracer.h
+++ b/source/cTracer.h
@@ -1,34 +1,34 @@
-#pragma once
-
-#include "Vector3i.h"
-#include "Vector3f.h"
-
-
-class cWorld;
-class cTracer //tolua_export
-{ //tolua_export
-public: //tolua_export
- Vector3f DotPos;
- Vector3f BoxOffset;
- cTracer( cWorld* a_World); //tolua_export
- ~cTracer(); //tolua_export
- int Trace( const Vector3f & a_Start, const Vector3f & a_Direction, int a_Distance ); //tolua_export
- void SetValues( const Vector3f & a_Start, const Vector3f & a_Direction ); //tolua_export
- Vector3f BlockHitPosition; //tolua_export
- Vector3f HitNormal; //tolua_export
- Vector3f RealHit; //tolua_export
-private:
- int intersect3D_SegmentPlane( const Vector3f & a_Origin, const Vector3f & a_End, const Vector3f & a_PlanePos, const Vector3f & a_PlaneNormal );
- int GetHitNormal( const Vector3f & start, const Vector3f & end, const Vector3i & a_BlockPos);
- float SigNum( float a_Num );
- cWorld* m_World;
-
- Vector3f m_NormalTable[6];
-
- Vector3f dir;
- Vector3f tDelta;
- Vector3i pos;
- Vector3i end1;
- Vector3i step;
- Vector3f tMax;
+#pragma once
+
+#include "Vector3i.h"
+#include "Vector3f.h"
+
+
+class cWorld;
+class cTracer //tolua_export
+{ //tolua_export
+public: //tolua_export
+ Vector3f DotPos;
+ Vector3f BoxOffset;
+ cTracer( cWorld* a_World); //tolua_export
+ ~cTracer(); //tolua_export
+ int Trace( const Vector3f & a_Start, const Vector3f & a_Direction, int a_Distance ); //tolua_export
+ void SetValues( const Vector3f & a_Start, const Vector3f & a_Direction ); //tolua_export
+ Vector3f BlockHitPosition; //tolua_export
+ Vector3f HitNormal; //tolua_export
+ Vector3f RealHit; //tolua_export
+private:
+ int intersect3D_SegmentPlane( const Vector3f & a_Origin, const Vector3f & a_End, const Vector3f & a_PlanePos, const Vector3f & a_PlaneNormal );
+ int GetHitNormal( const Vector3f & start, const Vector3f & end, const Vector3i & a_BlockPos);
+ float SigNum( float a_Num );
+ cWorld* m_World;
+
+ Vector3f m_NormalTable[6];
+
+ Vector3f dir;
+ Vector3f tDelta;
+ Vector3i pos;
+ Vector3i end1;
+ Vector3i step;
+ Vector3f tMax;
}; //tolua_export \ No newline at end of file