Exemple #1
0
        public double Area()
        {
            double holeSum = 0;

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

            polygonList.ForEach(polygon => totalArea += GetArea(polygon));
            return(totalArea);
        }