Revision 11226 branches/v10/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/JoinCADTool.java
JoinCADTool.java | ||
---|---|---|
191 | 191 |
} |
192 | 192 |
private boolean isIntoRect(Point2D p,Handler[] handlers) { |
193 | 193 |
double tol=0.02; |
194 |
double angle=Double.MIN_VALUE;
|
|
194 |
double angle=Double.NEGATIVE_INFINITY;
|
|
195 | 195 |
|
196 | 196 |
//for (int i=0;i<handlers.length;i++) { |
197 | 197 |
//if (handlers.length>0) { |
... | ... | |
200 | 200 |
Point2D p1Aux=handlers[j].getPoint(); |
201 | 201 |
if (!handlers[0].equalsPoint(handlers[j])) { |
202 | 202 |
double angleAux=UtilFunctions.getAngle(p0,p1Aux); |
203 |
if (angle!=Double.MIN_VALUE && (angle>angleAux+tol || angle<angleAux-tol)) {
|
|
203 |
if (angle!=Double.NEGATIVE_INFINITY && (angle>angleAux+tol || angle<angleAux-tol)) {
|
|
204 | 204 |
return false; |
205 | 205 |
} |
206 | 206 |
angle=angleAux; |
Also available in: Unified diff