The test suit only tests points that are inside or outside but not on the boundary of the polygon
Cyclist, this was a pretty tough problem to solve without resorting to Googling a solution or something similar. I ended up with a function that will work for any n-sided polygon. Thanks for the weekend challenge.
Maybe, thinking this problem in topology aspect is useful.
Given an unsigned integer x, find the largest y by rearranging the bits in x
795 Solvers
699 Solvers
309 Solvers
Flag largest magnitude swings as they occur
588 Solvers
Permute diagonal and antidiagonal
225 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!