Lines 337-343
Link Here
|
337 |
} else { |
337 |
} else { |
338 |
if (startNormal.dotProduct(endNormal) > 0) { |
338 |
if (startNormal.dotProduct(endNormal) > 0) { |
339 |
// 1 |
339 |
// 1 |
340 |
if (startNormal.dotProduct(direction) >= 0) |
340 |
if (startNormal.dotProduct(direction) <= 0) |
341 |
i = startNormal.similarity(start.getAdded(startNormal |
341 |
i = startNormal.similarity(start.getAdded(startNormal |
342 |
.getScaled(10))); |
342 |
.getScaled(10))); |
343 |
else |
343 |
else |
Lines 361-367
Link Here
|
361 |
positions.add(new Integer(i)); |
361 |
positions.add(new Integer(i)); |
362 |
horizontal = !horizontal; |
362 |
horizontal = !horizontal; |
363 |
|
363 |
|
364 |
if (startNormal.dotProduct(direction) < 0) { |
364 |
if (endNormal.dotProduct(direction) > 0) { |
365 |
i = endNormal.similarity(end.getAdded(endNormal |
365 |
i = endNormal.similarity(end.getAdded(endNormal |
366 |
.getScaled(10))); |
366 |
.getScaled(10))); |
367 |
positions.add(new Integer(i)); |
367 |
positions.add(new Integer(i)); |
Lines 377-381
Link Here
|
377 |
processPositions(start, end, positions, startNormal.isHorizontal(), |
377 |
processPositions(start, end, positions, startNormal.isHorizontal(), |
378 |
conn); |
378 |
conn); |
379 |
} |
379 |
} |
380 |
|
|
|
381 |
} |
380 |
} |