As i said it depends. If linear segments, you can think of a trapezoid and it's area is:
dx = x2 - x1: dy = y2 - y1
areaTriangle = 0.5 * dx * dy
areaRectangle = dx * y1
areaTrapezoid = areaTriangle + areaRectangle
Continue for the rest of the vertices and sum all Trapezoid area's.
When not linear segments (bulge <> 0) the area equals: areaCircleSector+2*areaTrapezoid.
(Arc Segment is rotatedCircleSector+Trapezoid(p2,pc)+Trapezoid(pc,p1)
areaCircleSector = r * r * 0.5 * sweepAngle ' Calculate the Sector, not the Segment "*(sweep - Sin(sweep))"
Add areaTrapezoid(pc, p1)+areaTrapeziod(p2, pc)
the radius can have a positive and negative value, dependig of a hole segment or a icecream like shape.
I used to use the circle sector and not a circle segment because it enabled me to calculate the centroid and inertia of segments as well.
It's relatively easy for a rotated circle sector but not for a rotated circle segment.