summaryrefslogtreecommitdiffstats
path: root/src/Vector3.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-07-05 09:11:08 +0200
committerMattes D <github@xoft.cz>2016-07-18 22:11:39 +0200
commit28732bc3398fea1a51c8c0fe51adfbbaf9f6fa30 (patch)
tree0a161f192f84e10921df3f4b23debab47e9b6efc /src/Vector3.h
parentDiffAPIDesc: Support optional params in desc. (diff)
downloadcuberite-28732bc3398fea1a51c8c0fe51adfbbaf9f6fa30.tar
cuberite-28732bc3398fea1a51c8c0fe51adfbbaf9f6fa30.tar.gz
cuberite-28732bc3398fea1a51c8c0fe51adfbbaf9f6fa30.tar.bz2
cuberite-28732bc3398fea1a51c8c0fe51adfbbaf9f6fa30.tar.lz
cuberite-28732bc3398fea1a51c8c0fe51adfbbaf9f6fa30.tar.xz
cuberite-28732bc3398fea1a51c8c0fe51adfbbaf9f6fa30.tar.zst
cuberite-28732bc3398fea1a51c8c0fe51adfbbaf9f6fa30.zip
Diffstat (limited to 'src/Vector3.h')
-rw-r--r--src/Vector3.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index 4fa9ff46c..8c8dc6ad4 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -67,6 +67,10 @@ public:
);
}
+ // tolua_end
+
+ /** Sets the given vector to the normalized version of this vector.
+ Removed from LuaAPI, because Lua doesn't need distinguishing from the other overload. */
inline void NormalizeCopy(Vector3<T> & a_Rhs) const
{
double Len = 1.0 / Length();
@@ -78,6 +82,8 @@ public:
);
}
+ // tolua_begin
+
inline bool HasNonZeroLength(void) const
{
#ifdef __clang__
@@ -168,7 +174,7 @@ public:
z += a_Diff.z;
}
- /** Runs each value of the vector through std::floor() */
+ /** Returns a new Vector3i with coords set to std::floor() of this vector's coords. */
inline Vector3<int> Floor(void) const
{
return Vector3<int>(