Code int area = 0; //We will triangulate the polygon into triangles with points p[0],p[i],p[i+1] for(int i = 1; i+1<N; i++){
{"Image DocumentName": "Codeint area = 0; //We will triangulate the polygon into triangles with points p[0],p[i],p[i+1] for(int i = 1; i+1<N; i++){", "Image ImageDescription": "area += cross(p[i]-p[0], p[i+1]-p[0]); // p[0]p[i] x p[0]p[i+1] } return abs(area/2.0);", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}