summaryrefslogtreecommitdiffstats
path: root/src/Vector3.h
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-03-11 20:58:50 +0100
committerandrew <xdotftw@gmail.com>2014-03-11 20:58:50 +0100
commitabf4effaaf0eff1a98e005512f805211c2fad9a7 (patch)
tree12b0f861dd804580af39ffe55af3e430d6d535f4 /src/Vector3.h
parentUnified Matrix4 code (diff)
downloadcuberite-abf4effaaf0eff1a98e005512f805211c2fad9a7.tar
cuberite-abf4effaaf0eff1a98e005512f805211c2fad9a7.tar.gz
cuberite-abf4effaaf0eff1a98e005512f805211c2fad9a7.tar.bz2
cuberite-abf4effaaf0eff1a98e005512f805211c2fad9a7.tar.lz
cuberite-abf4effaaf0eff1a98e005512f805211c2fad9a7.tar.xz
cuberite-abf4effaaf0eff1a98e005512f805211c2fad9a7.tar.zst
cuberite-abf4effaaf0eff1a98e005512f805211c2fad9a7.zip
Diffstat (limited to 'src/Vector3.h')
-rw-r--r--src/Vector3.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index 841c3e7d1..79c47ae77 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -26,6 +26,12 @@ public:
inline Vector3(T a_x, T a_y, T a_z) : x(a_x), y(a_y), z(a_z) {}
+ // Hardcoded copy constructors (tolua++ does not support function templates .. yet)
+ Vector3(const Vector3<float> & a_Rhs) : x(a_Rhs.x), y(a_Rhs.y), z(a_Rhs.z) {}
+ Vector3(const Vector3<double> & a_Rhs) : x(a_Rhs.x), y(a_Rhs.y), z(a_Rhs.z) {}
+ Vector3(const Vector3<int> & a_Rhs) : x(a_Rhs.x), y(a_Rhs.y), z(a_Rhs.z) {}
+
+
// tolua_end
template <typename _T>
Vector3(const Vector3<_T> & a_Rhs) : x(a_Rhs.x), y(a_Rhs.y), z(a_Rhs.z) {}