I fixed a bug when canvas not show in "Polygon2"
<?php
public static bool Check_Pos(int polySides, int[] polyX, int[] polyY,float x,float y)
{
int i, j = polySides - 1;
bool oddNodes = false;
for (i = 0; i < polySides; i++)
{
if (polyY[i] < y && polyY[j] >= y || polyY[j] < y && polyY[i] >= y)
{
if (polyX[i] + (y - polyY[i]) / (polyY[j] - polyY[i]) * (polyX[j] - polyX[i]) < x)
{
oddNodes = !oddNodes;
}
}
j = i;
}
return oddNodes;
}
int[] array = new int[] { 1, 3, 5, 7, 9 };
bool Check_Pos(int polySides,int[] polyX,int[] polyY,int x,int y);
?>
if (((Conn.CompCar.X / 65536) <= -65) && ((Conn.CompCar.X / 65536) >= -116) && ((Conn.CompCar.Y / 65536) <= 219) && ((Conn.CompCar.Y / 65536) >= -46))
[
{
"name": "test",
"speedLimit": 0,
"X": [
-284,
-283,
-323,
-324
],
"Y": [
-94,
146,
144,
-99
]
}