(points, direction, options = {})
| 101667 | } |
| 101668 | } |
| 101669 | function modifyPolygonWindingDirectionPoints(points, direction, options = {}) { |
| 101670 | const currentDirection = getPolygonWindingDirectionPoints(points, options); |
| 101671 | if (currentDirection !== direction) { |
| 101672 | points.reverse(); |
| 101673 | return true; |
| 101674 | } |
| 101675 | return false; |
| 101676 | } |
| 101677 | function getPolygonWindingDirectionPoints(points, options = {}) { |
| 101678 | return Math.sign(getPolygonSignedAreaPoints(points, options)); |
| 101679 | } |
nothing calls this directly
no test coverage detected