(a, b)
| 69838 | |
| 69839 | // check if a polygon diagonal is locally inside the polygon |
| 69840 | function locallyInside(a, b) { |
| 69841 | return area(a.prev, a, a.next) < 0 ? |
| 69842 | area(a, b, a.next) >= 0 && area(a, a.prev, b) >= 0 : |
| 69843 | area(a, b, a.prev) < 0 || area(a, a.next, b) < 0; |
| 69844 | } |
| 69845 | |
| 69846 | // check if the middle point of a polygon diagonal is inside the polygon |
| 69847 | function middleInside(a, b) { |
no test coverage detected