Im trying to figure out the details of this algorithm posted here Extension to crossed polygons(Scroll down).
The algorithm states that the sum of angles of any polygon can be found by the formula 180(n-2k) where n is the number of vertices and k a positive whole number of 360 revolutions found by walking around the perimeter of the polygon.
I do not know how to find k for a crossed square. Could someone explain how to find this maybe with a diagram? Thank you for your time.
Crossed Square It says for simple polygons k should be one so i assume for complex k should be higher.
If you can get the java applets to work this link might be of help. I cant get them to work however so please if you can relay your findings back to me.
For more complex shapes the answer is not clear. For example a "spring" shape composed from two crossed square linked together. There are two possible sums depending on where you start walking the polygon. Unless you specify that going clockwise is a positive angle and counter clockwise a negative angle instead of having angles be relative and signs arbitrary.
Ultimately my end goal is to use this formula to test if a polygon is convex or not. Combining it with another formula i get 180n - 180(n-2k) == 360 means that its convex. Is this formula flawed in any way?
