Click or drag to resize

PolygonMath Class

Mathematics for closed polygons.
Inheritance Hierarchy
System.Object
  Altaxo.Geometry.Double_2D.PolygonMath

Namespace: Altaxo.Geometry.Double_2D
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax
C#
public static class PolygonMath

The PolygonMath type exposes the following members.

Methods
 NameDescription
Public methodStatic memberGetClosedPolygonArea(IEnumerable<PointD2D>) Gets the area of a closed polygon.
Public methodStatic memberGetClosedPolygonArea(IEnumerable<ValueTuple<Double, Double>>) Gets the area of a closed polygon.
Public methodStatic memberGetClosedPolygonCentroid(IEnumerable<PointD2D>) Calculate the center of gravity (centroid) of the given closed polygon. The polygon has to be non-selfintersecting!
Public methodStatic memberGetClosedPolygonCentroid(IEnumerable<ValueTuple<Double, Double>>) Calculate the center of gravity (centroid) of the given closed polygon. The polygon has to be non-selfintersecting!
Public methodStatic memberGetClosedPolygonCircumference(IEnumerable<PointD2D>) Gets the circumference of a closed polygon.
Public methodStatic memberGetClosedPolygonCircumference(IEnumerable<ValueTuple<Double, Double>>) Gets the circumference of a closed polygon.
Public methodStatic memberGetClosedPolygonSecondMoments(IEnumerable<PointD2D>) Calculates the 2nd moments of the given closed polygon. The polygon has to be non-selfintersecting!
Public methodStatic memberGetClosedPolygonSecondMoments(IEnumerable<IEnumerable<PointD2D>>) Calculates the 2nd moments of the given closed polygons. The polygons have to be non-selfintersecting!
Public methodStatic memberGetClosedPolygonSecondMoments(IEnumerable<IEnumerable<ValueTuple<Double, Double>>>) Calculates the 2nd moments of the given closed polygons. The polygons have to be non-selfintersecting!
Public methodStatic memberGetClosedPolygonSecondMoments(IEnumerable<ValueTuple<Double, Double>>) Calculates the 2nd moments of the given closed polygon. The polygon has 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 MethodToPointsD2D(IEnumerable<PointD2D>, 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 MethodToPointsD2D(IEnumerable<ValueTuple<Double, 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