(ear)
| 101791 | } |
| 101792 | } |
| 101793 | function isEar(ear) { |
| 101794 | const a = ear.prev; |
| 101795 | const b = ear; |
| 101796 | const c = ear.next; |
| 101797 | if (area(a, b, c) >= 0) return false; |
| 101798 | let p = ear.next.next; |
| 101799 | while(p !== ear.prev){ |
| 101800 | if (pointInTriangle(a.x, a.y, b.x, b.y, c.x, c.y, p.x, p.y) && area(p.prev, p, p.next) >= 0) return false; |
| 101801 | p = p.next; |
| 101802 | } |
| 101803 | return true; |
| 101804 | } |
| 101805 | function isEarHashed(ear, minX, minY, invSize) { |
| 101806 | const a = ear.prev; |
| 101807 | const b = ear; |
no test coverage detected