Hello:
Need help to figure out why my code fail to compile in the following functions:
perimeter = perimeter + yc[i].distanceTo(yc[i+1]); //get polygon perimeter
area = x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2) / 2; //get area triangle
here is my code: