Mathematics for closed polygons.
Inheritance Hierarchy Namespace: Altaxo.Geometry.Double_2DAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntaxpublic static class PolygonMath
The PolygonMath type exposes the following members.
Methods | Name | Description |
---|
  | GetClosedPolygonArea(IEnumerable<PointD2D>) |
Gets the area of a closed polygon.
|
  | GetClosedPolygonArea(IEnumerable<ValueTuple<Double, Double>>) |
Gets the area of a closed polygon.
|
  | GetClosedPolygonCentroid(IEnumerable<PointD2D>) |
Calculate the center of gravity (centroid) of the given closed polygon. The polygon
has to be non-selfintersecting!
|
  | GetClosedPolygonCentroid(IEnumerable<ValueTuple<Double, Double>>) |
Calculate the center of gravity (centroid) of the given closed polygon. The polygon
has to be non-selfintersecting!
|
  | GetClosedPolygonCircumference(IEnumerable<PointD2D>) |
Gets the circumference of a closed polygon.
|
  | GetClosedPolygonCircumference(IEnumerable<ValueTuple<Double, Double>>) |
Gets the circumference of a closed polygon.
|
  | GetClosedPolygonSecondMoments(IEnumerable<PointD2D>) |
Calculates the 2nd moments of the given closed polygon. The polygon
has to be non-selfintersecting!
|
  | GetClosedPolygonSecondMoments(IEnumerable<IEnumerable<PointD2D>>) |
Calculates the 2nd moments of the given closed polygons. The polygons
have to be non-selfintersecting!
|
  | GetClosedPolygonSecondMoments(IEnumerable<IEnumerable<ValueTuple<Double, Double>>>) |
Calculates the 2nd moments of the given closed polygons. The polygons
have to be non-selfintersecting!
|
  | GetClosedPolygonSecondMoments(IEnumerable<ValueTuple<Double, Double>>) |
Calculates the 2nd moments of the given closed polygon. The polygon
has to be non-selfintersecting!
|
  | GetEigenValuesFromSecondMoments |
Gets the eigenvalues from the second moments.
|
  | GetEigenVectorsFromSecondMoments |
Gets the eigenvectors from the second moments.
|
  | GetOrientationAngleOfPrincipalAxisFromSecondMoments |
Gets the orientation angle (in rad) of the principal axis from the second moments.
|
 | ToPointsD2D(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.
|
 | ToPointsD2D(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