Revision 45268

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.api/src/main/java/org/gvsig/fmap/geom/GeometryUtils.java
881 881
        }
882 882
        return angle;
883 883
    }
884
    
885
    public static boolean areThreePointsInLine(Point a, Point b, Point c){
886
        if(a.equals(b) || a.equals(c) || b.equals(c)){
887
            return true;
888
        }
889
        return ((b.getX()-a.getX())/(c.getX()-b.getX()) == (b.getY()-a.getY())/(c.getY()-b.getY()));
890
    }
884 891

  
885 892
}

Also available in: Unified diff