| 1 |
|
| MODULE = Geo::Geos PACKAGE = Geo::Geos::Triangle |
| 2 |
|
| PROTOTYPES: DISABLE |
| 3 |
|
| |
| 4 |
1 |
| Triangle* new(SV*, Coordinate& p0, Coordinate& p1, Coordinate& p2) |
| 5 |
1 |
▶ | |
Branch: 2 branches
| Branch | True | False | Total |
|
1 |
0 |
1 |
|
1 |
0 |
1 |
|
| 6 |
|
| Coordinate* Triangle::p0(Coordinate* newval = NULL) : ALIAS(p1=1,p2=2) { |
| 7 |
3 |
| Coordinate* val; |
| 8 |
|
| switch (ix) { |
| 9 |
3 |
| case 0: val = &THIS->p0; break; |
| 10 |
1 |
| case 1: val = &THIS->p1; break; |
| 11 |
1 |
| default: val = &THIS->p2; break; |
| 12 |
1 |
| } |
| 13 |
|
| if (newval) { |
| 14 |
3 |
▶ | *val = *newval; |
Branch: 1 branch
| Branch | True | False | Total |
| *val = *newval; |
0 |
3 |
3 |
|
| 15 |
0 |
| } |
| 16 |
|
| RETVAL = new Coordinate(*val); |
| 17 |
3 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
3 |
0 |
3 |
| } |
3 |
0 |
3 |
|
| 18 |
|
| |
| 19 |
|
| Coordinate* Triangle::inCentre() { |
| 20 |
1 |
| Coordinate c; |
| 21 |
1 |
▶ | THIS->inCentre(c); |
Branch: 1 branch
| Branch | True | False | Total |
| THIS->inCentre(c); |
1 |
0 |
1 |
|
| 22 |
1 |
▶ | RETVAL = new Coordinate(c); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = new Coordinate(c); |
1 |
0 |
1 |
|
| 23 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 24 |
|
| |
| 25 |
|
| Coordinate* Triangle::circumcentre() { |
| 26 |
1 |
| Coordinate c; |
| 27 |
1 |
▶ | THIS->circumcentre(c); |
Branch: 1 branch
| Branch | True | False | Total |
| THIS->circumcentre(c); |
1 |
0 |
1 |
|
| 28 |
1 |
▶ | RETVAL = new Coordinate(c); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = new Coordinate(c); |
1 |
0 |
1 |
|
| 29 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 30 |
|
| |
| 31 |
|
| bool isInCircleNonRobust(Coordinate& a, Coordinate& b, Coordinate& c, Coordinate& p): ALIAS(isInCircleNormalized=1, isInCircleRobust=2) { |
| 32 |
3 |
| switch(ix) { |
| 33 |
1 |
| case 0: RETVAL = TrianglePredicate::isInCircleNonRobust(a, b, c, p); break; |
| 34 |
1 |
| case 1: RETVAL = TrianglePredicate::isInCircleNormalized(a, b, c, p); break; |
| 35 |
1 |
| default: RETVAL = TrianglePredicate::isInCircleRobust(a, b, c, p); break; |
| 36 |
|
| } |
| 37 |
|
| } |
| 38 |
|
| |
| 39 |
|
| |
| 40 |
0 |
▶ | int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; } |
Branch: 1 branch
| Branch | True | False | Total |
| int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; } |
0 |
0 |
0 |
|
| 41 |
|
| |
| 42 |
|
| BOOT { |
| 43 |
46 |
▶ | xs::exp::autoexport(Stash(__PACKAGE__)); |
Branch: 2 branches
| Branch | True | False | Total |
| xs::exp::autoexport(Stash(__PACKAGE__)); |
46 |
0 |
46 |
| xs::exp::autoexport(Stash(__PACKAGE__)); |
46 |
0 |
46 |
|
| 44 |
|
| } |