blib/lib/Algorithm/Line/Bresenham.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 7 | 15 | 46.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
60 | 14 | 1 | 6 | $x0 == $x1 and $y0 == $y1 |
183 | 0 | 0 | 2 | ($x0 - $x1) * ($x2 - $x1) <= 0 and ($y0 - $y1) * ($y2 - $y1) <= 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
202 | 0 | 0 | 2 | $dx >= -$y or $dy <= -$x |
0 | 0 | 2 | $dx >= -$y or $dy <= -$x or $ex <= -$y | |
0 | 0 | 2 | $dx >= -$y or $dy <= -$x or $ex <= -$y or $ey >= -$x |