summaryrefslogtreecommitdiffstats
path: root/source/Cuboid.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Cuboid.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/source/Cuboid.cpp b/source/Cuboid.cpp
index 7b3b24528..e50ea1faf 100644
--- a/source/Cuboid.cpp
+++ b/source/Cuboid.cpp
@@ -9,9 +9,18 @@
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 );
+ 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);
+ }
}