Bugfix: some bridges had wrong perimeters inside

This commit is contained in:
Alessandro Ranellucci 2011-10-13 22:22:45 +02:00
parent c97a89c07c
commit 56619871b2
3 changed files with 13 additions and 5 deletions

View file

@ -157,7 +157,7 @@ sub point_in_segment {
# if line is vertical, check whether point's X is the same as the line
if ($line->[A][X] == $line->[B][X]) {
return 1 if abs($x - $line->[A][X]) < epsilon;
return abs($x - $line->[A][X]) < epsilon ? 1 : 0;
}
# calculate the Y in line at X of the point