summaryrefslogtreecommitdiffstats
path: root/src/Cuboid.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-15 14:47:56 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-15 14:47:56 +0100
commitfbd4d53dacdf93f51eccc53df22831aec6a5b40a (patch)
tree8187e7749f2c8331d2c096b755bf859cd6ee8c21 /src/Cuboid.cpp
parentPatched tolua to emit range checks for enums (diff)
parentDebuggers: Added a test for WE selection API. (diff)
downloadcuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar.gz
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar.bz2
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar.lz
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar.xz
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.tar.zst
cuberite-fbd4d53dacdf93f51eccc53df22831aec6a5b40a.zip
Diffstat (limited to 'src/Cuboid.cpp')
-rw-r--r--src/Cuboid.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Cuboid.cpp b/src/Cuboid.cpp
index 2400c64f3..3e5240248 100644
--- a/src/Cuboid.cpp
+++ b/src/Cuboid.cpp
@@ -38,6 +38,20 @@ void cCuboid::Assign(int a_X1, int a_Y1, int a_Z1, int a_X2, int a_Y2, int a_Z2)
+void cCuboid::Assign(const cCuboid & a_SrcCuboid)
+{
+ p1.x = a_SrcCuboid.p1.x;
+ p1.y = a_SrcCuboid.p1.y;
+ p1.z = a_SrcCuboid.p1.z;
+ p2.x = a_SrcCuboid.p2.x;
+ p2.y = a_SrcCuboid.p2.y;
+ p2.z = a_SrcCuboid.p2.z;
+}
+
+
+
+
+
void cCuboid::Sort(void)
{
if (p1.x > p2.x)