277278279280281282283284285286287
if (rightPoint != null) { dis1 = rightPoint.distance(start) - norm.length(); } float dis2 = Float.MAX_VALUE; if (leftPoint != null) { dis2 = leftPoint.distance(start) - norm.length(); } norm.normalise(); float dis = Math.min(dis1,dis2);
278279280281282283284285286287288