(a, b)
| 2105 | |
| 2106 | // check if a polygon diagonal is locally inside the polygon |
| 2107 | function locallyInside(a, b) { |
| 2108 | return area(a.prev, a, a.next) < 0 ? area(a, b, a.next) >= 0 && area(a, a.prev, b) >= 0 : area(a, b, a.prev) < 0 || area(a, a.next, b) < 0; |
| 2109 | } |
| 2110 | |
| 2111 | // check if the middle point of a polygon diagonal is inside the polygon |
| 2112 | function middleInside(a, b) { |
no test coverage detected