Automatic commit
[universe.git] / polygon.cc
index 75163cb..6f980bd 100644 (file)
@@ -1,17 +1,6 @@
 
-////////////////////////////////////////////////////////////////////////////////
-// This program is free software; you can redistribute it and/or              //
-// modify it under the terms of the GNU General Public License                //
-// version 2 as published by the Free Software Foundation.                    //
-//                                                                            //
-// This program is distributed in the hope that it will be useful, but        //
-// WITHOUT ANY WARRANTY; without even the implied warranty of                 //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU          //
-// General Public License for more details.                                   //
-//                                                                            //
-// Written and (C) by François Fleuret                                        //
-// Contact <francois.fleuret@epfl.ch> for comments & bug reports              //
-////////////////////////////////////////////////////////////////////////////////
+// Written and (C) by Francois Fleuret
+// Contact <francois.fleuret@idiap.ch> for comments & bug reports
 
 #include <cmath>
 #include "polygon.h"
@@ -157,7 +146,7 @@ void Polygon::triangularize(int &nt, int nb, int *index) {
                           _relative_x[index[(k+1)%nb]] - _relative_x[index[m]],
                           _relative_y[index[(k+1)%nb]] - _relative_y[index[m]]);
 
-        if(a1 * a2 > 0 && best_split < 0 || (abs(a1 - a2) < best_split)) {
+        if((a1 * a2 > 0 && best_split < 0) || (abs(a1 - a2) < best_split)) {
           best_n = n; best_m = m;
           best_split = abs(a1 - a2);
         }