From: <pat...@us...> - 2011-03-27 20:32:08
|
Revision: 1274 http://ggt.svn.sourceforge.net/ggt/?rev=1274&view=rev Author: patrickh Date: 2011-03-27 20:32:02 +0000 (Sun, 27 Mar 2011) Log Message: ----------- Minor formatting adjustments. No functional changes. Modified Paths: -------------- trunk/gmtl/Intersection.h Modified: trunk/gmtl/Intersection.h =================================================================== --- trunk/gmtl/Intersection.h 2011-03-27 18:22:39 UTC (rev 1273) +++ trunk/gmtl/Intersection.h 2011-03-27 20:32:02 UTC (rev 1274) @@ -132,22 +132,22 @@ } // Find the possible first and last times of overlap along each axis - for (int i=0; i<3; ++i) + for (int i = 0; i < 3; ++i) { - if ((box1.getMax()[i] < box2.getMin()[i]) && (path[i] < DATA_TYPE(0))) + if (box1.getMax()[i] < box2.getMin()[i] && path[i] < DATA_TYPE(0)) { overlap1[i] = (box1.getMax()[i] - box2.getMin()[i]) / path[i]; } - else if ((box2.getMax()[i] < box1.getMin()[i]) && (path[i] > DATA_TYPE(0))) + else if (box2.getMax()[i] < box1.getMin()[i] && path[i] > DATA_TYPE(0)) { overlap1[i] = (box1.getMin()[i] - box2.getMax()[i]) / path[i]; } - if ((box2.getMax()[i] > box1.getMin()[i]) && (path[i] < DATA_TYPE(0))) + if (box2.getMax()[i] > box1.getMin()[i] && path[i] < DATA_TYPE(0)) { overlap2[i] = (box1.getMin()[i] - box2.getMax()[i]) / path[i]; } - else if ((box1.getMax()[i] > box2.getMin()[i]) && (path[i] > DATA_TYPE(0))) + else if (box1.getMax()[i] > box2.getMin()[i] && path[i] > DATA_TYPE(0)) { overlap2[i] = (box1.getMax()[i] - box2.getMin()[i]) / path[i]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |