diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-15 14:53:07 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-15 14:53:07 +0100 |
commit | 683e2f48405a2bcbf0b839db51379946e096b212 (patch) | |
tree | 43f1df6cdfab7c6c440554438cd087fc3c19096e /src/Cuboid.cpp | |
parent | Merge branch 'master' into globals (diff) | |
parent | Debuggers: Added a test for WE selection API. (diff) | |
download | cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar.gz cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar.bz2 cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar.lz cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar.xz cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar.zst cuberite-683e2f48405a2bcbf0b839db51379946e096b212.zip |
Diffstat (limited to 'src/Cuboid.cpp')
-rw-r--r-- | src/Cuboid.cpp | 14 |
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) |