Branch Coverage

blib/lib/Math/Zap/Triangle2.pm
Criterion Covered Total %
branch 25 56 44.6


line true false branch
195 0 0 unless scalar @_
214 1 8 if $n and $A
243 0 0 unless ref $t eq 'Math::Zap::Triangle2'
383 0 0 unless $s != 0
438 8 4 if 0 <= $s->x and $s->x <= 1 and 0 <= $s->y and $s->y <= 1 and $s->x + $s->y <= 1
456 0 0 if $t->containsPoint($T->a) and $t->containsPoint($T->b) and $t->containsPoint($T->c)
476 0 1 if $t->contains($T)
477 0 1 if $T->contains($t)
480 0 1 if $T->containsPoint($t->a)
481 0 1 if $T->containsPoint($t->b)
482 0 1 if $T->containsPoint($t->c)
484 0 1 if $t->containsPoint($T->a)
485 0 1 if $t->containsPoint($T->b)
486 0 1 if $t->containsPoint($T->c)
488 0 1 if $t->lab->crossOver($T->lab)
489 1 0 if $t->lab->crossOver($T->lac)
490 1 0 if $t->lab->crossOver($T->lbc)
491 1 0 if $t->lac->crossOver($T->lab)
492 1 0 if $t->lac->crossOver($T->lac)
493 0 1 if $t->lac->crossOver($T->lbc)
494 1 0 if $t->lbc->crossOver($T->lab)
495 0 1 if $t->lbc->crossOver($T->lac)
496 1 0 if $t->lbc->crossOver($T->lbc)
519 0 1 unless scalar @p > 2
528 0 6 if ($p[$p] - $c)->length < $accuracy
530 3 3 if (($p[$p] - $c)->y >= 0) { }
576 0 0 unless $t->ab->length > $s and $t->ac->length > $s and $t->bc->length > $s
602 0 0 if abs(($aa - $ba)->length) < $d and abs(($ab - $bb)->length) < $d and abs(($ac - $bc)->length) < $d or abs(($aa - $ba)->length) < $d and abs(($ab - $bc)->length) < $d and abs(($ac - $bb)->length) < $d or abs(($aa - $bb)->length) < $d and abs(($ab - $bc)->length) < $d and abs(($ac - $ba)->length) < $d or abs(($aa - $bb)->length) < $d and abs(($ab - $ba)->length) < $d and abs(($ac - $bc)->length) < $d or abs(($aa - $bc)->length) < $d and abs(($ab - $ba)->length) < $d and abs(($ac - $bb)->length) < $d or abs(($aa - $bc)->length) < $d and abs(($ab - $bb)->length) < $d and abs(($ac - $ba)->length) < $d