[EDIT]
You can ignore this (unless you want the point in polygon code), the link that I provided explains the loop further down. It seems I did understand it correctly
[/EDIT]
Hi,
I've found some code to perform a point in polygon check but the code is in C++ and I want to convert it to AGK.
Most of the code is easily convertible but I don't really understand what is going on with the opening FOR statement.
Could somebody please help me out with this:
for (i = 0, j = nvert-1; i < nvert; j = i++) {
Assuming
nvert is 5 then as I understand it ,
i would loop from 0 to 4
j would be 4 the first time through the loop but then
i-1 each successive time.
Feel free to tell me that I'm wrong and point out the correct values so that I can convert it to AGK.
Thanks!
FYI, the full code is
hereAGK V2 user - Tier 1 (mostly)