public double Area() { double holeSum = 0; Holes.ForEach((hole) => holeSum += hole.Area()); return(Math.Abs(SignedContourArea()) - holeSum); }
public static double GetArea(PolygonList polygonList) { double totalArea = 0; polygonList.ForEach(polygon => totalArea += GetArea(polygon)); return(totalArea); }