I have a polygon edge (convex or concave). I want to know if, going straight from the beginning to the end of this edge, I have to turn right or left to get inside or outside the polygon. How can I check this?
Move the entire polygon in this direction. If you find that you went clockwise, then the interior is on the right; if you went counterclockwise, then left.
Another approach:
Project a perpendicular line and count how many times it crosses the other edges.
→→
→
"--", - .
Source: https://habr.com/ru/post/1682746/More articles:C ++ - Valgrind on code blocks (linux) - c ++C ++ - Mysql Connector - c ++Track vertex joining and definition when creating a polygon - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1682744/spark-shell-on-multinode-spark-cluster-fails-to-spon-executor-on-remote-worker-node&usg=ALkJrhjN3h1F49hIByEJ-jJ1cCxrScbuSwWith the standard std :: byte standard, when do we use void * and when is byte *? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1682747/css-touch-like-scroll-using-mouse&usg=ALkJrhiyqg8olpWG6Z7caVcpW9N4J9CdLwWhat is the difference between angularjs and angular cli? - angularjsJs-grid output height limitation problems - Unable to control output overflow - javascriptPandas: How to create a datetime object from week and year? - pythonString Swift 3 contains the exact sentence / word - swiftAll Articles