summaryrefslogtreecommitdiffstats
path: root/source/Cuboid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Cuboid.cpp')
-rw-r--r--source/Cuboid.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/Cuboid.cpp b/source/Cuboid.cpp
new file mode 100644
index 000000000..7b3b24528
--- /dev/null
+++ b/source/Cuboid.cpp
@@ -0,0 +1,19 @@
+
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
+#include "Cuboid.h"
+
+
+
+
+
+void cCuboid::Sort()
+{
+ if( p1.x > p2.x ) std::swap( p1.x, p2.x );
+ if( p1.y > p2.y ) std::swap( p1.y, p2.y );
+ if( p1.z > p2.z ) std::swap( p1.z, p2.z );
+}
+
+
+
+