Improved code-matching

This commit is contained in:
Christoph Oberhofer
2016-04-24 17:26:17 +02:00
parent a9584bae77
commit dadb8dbc9f
5 changed files with 101 additions and 55 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ export default {
line = getLine(box);
lineLength = getLineLength(line);
lineAngle = Math.atan2(line[1].y - line[0].y, line[1].x - line[0].x);
line = getExtendedLine(line, lineAngle, Math.floor(lineLength * 0.2));
line = getExtendedLine(line, lineAngle, Math.floor(lineLength * 0.1));
if (line === null){
return null;
}