if ((flag < 0 && online == false) || (flag == 0 && online == false)) { messagebox.show("the isolated point is outside the polygon"); break; } else if (flag == 0 && i == count - 1 && online == true) { messagebox.show("the isolated point is on the border of the polygon"); break; } else if (flag > 0 && i == count - 1) { messagebox.show("the isolated point is inside the polygon"); break; }
private void button4_click(object sender, eventargs e) { messagebox.show("when you input the coordinates of vertexes,/nyou must ensure that the vertexes are ordinal/nand the polygon is at the right side of the line/nfrom previous vertex to current vertex./nor else, there must be error!/n/nplease remember! good luck!/n/n/npoint & polygon v1.0 <<iceboy 2005.1.2>>", "attention!",messageboxbuttons.ok,messageboxicon.information); } } }