Click or drag to resize

PolygonMath Methods

The PolygonMath type exposes the following members.

Methods
 NameDescription
Public methodStatic memberGetClosedPolygonArea Gets the area of a closed polygon.
Public methodStatic memberGetClosedPolygonCentroid Calculate the center of gravity (centroid) of the given closed polygon. The polygon has to be non-selfintersecting!
Public methodStatic memberGetClosedPolygonCircumference Gets the circumference of a closed polygon.
Public methodStatic memberGetClosedPolygonSecondMoments(IEnumerableIntPoint) Calculates the 2nd moments of the given closed polygon. The polygon has to be non-selfintersecting!
Public methodStatic memberGetClosedPolygonSecondMoments(IEnumerableIEnumerableIntPoint) Calculates the 2nd moments of the given closed polygons. The polygons have to be non-selfintersecting!
Public methodStatic memberGetEigenValuesFromSecondMoments Gets the eigenvalues from the second moments.
Public methodStatic memberGetEigenVectorsFromSecondMoments Gets the eigenvectors from the second moments.
Public methodStatic memberGetOrientationAngleOfPrincipalAxisFromSecondMoments Gets the orientation angle (in rad) of the principal axis from the second moments.
Public Extension MethodToIntPoints(IEnumerablePointD2D, Double, Double, Double, Double) Creates integer polygon points from points consisting of doubles. The points can be transformed before converting to integers. First, the points are centered (x'=x-centerX, y'=y-centerY). Then the centered point is rotated. Lastly, the such transformated points is scaled.
Public Extension MethodToIntPoints(IEnumerableValueTupleDouble, Double, Double, Double, Double, Double) Creates integer polygon points from points consisting of doubles. The points can be transformed before converting to integers. First, the points are centered (x'=x-centerX, y'=y-centerY). Then the centered point is rotated. Lastly, the such transformated points is scaled.
Top
See Also