@@ -0,0 +1,505 @@
+package org.psjava.formula.geometry;%0A%0Aimport org.psjava.ds.array.Array;%0Aimport org.psjava.ds.geometry.Point2D;%0Aimport org.psjava.ds.geometry.Polygon2D;%0Aimport org.psjava.util.ZeroTo;%0A%0Apublic class LengthOfPolygon %7B%0A%0A%09public static double calc(Polygon2D%3CDouble%3E polygon) %7B%0A%09%09Array%3CPoint2D%3CDouble%3E%3E points = polygon.getCCWOrderPoints();%0A%09%09double sum = 0;%0A%09%09for (int i : ZeroTo.get(points.size()))%0A%09%09%09sum += DistanceBetweenPoints.calc(points.get(i), points.get((i + 1) %25 points.size()));%0A%09%09return sum;%0A%09%7D%0A%0A%7D%0A

add LengthOfPolygon