Drag the white dots to move them. Press space to add a dot. Press the green flag to reset.
https://stackoverflow.com/questions/1165647/how-to-determine-if-a-list-of-polygon-points-are-in-clockwise-order Got this from that webpage. I used it for my backface culling project. It adds the areas under the lines that point to the right and subtracts the areas of lines that point to the left. This will be negative if it's anti-clockwise. It also provides the area, but it messes up when lines cross. This project visualises that process. It may get a bit laggy.