blib/lib/Collision/2D.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 28 | 64.2 |
line | true | false | branch |
---|---|---|---|
39 | 0 | 164 | if (ref $ent2 eq 'ARRAY') |
47 | 50 | 114 | if ($ent1->_p > $ent2->_p) |
55 | 36 | 128 | unless $collision |
56 | 1 | 127 | if ($params{'keep_order'} and $swapped) |
65 | 0 | 223 | if (ref $ent2 eq 'ARRAY') |
67 | 0 | 0 | if intersection($ent1, $_) |
71 | 117 | 106 | if $ent1->_p > $ent2->_p |
74 | 141 | 82 | if $ent1->$method($ent2) |
158 | 0 | 31 | unless defined $y and defined $x |
159 | 0 | 31 | unless $cell_size |
161 | 0 | 31 | if ($cells) { } |
166 | 0 | 31 | if ($cells_x) |
169 | 0 | 31 | if ($cells_y) |
173 | 0 | 31 | unless $w and $h |