Area of closed polyline

One can also triangulate the polyline and compute the area of the resulting triangles: