Click or drag to resize

PolygonMathGetClosedPolygonCentroid(IEnumerableValueTupleDouble, Double) Method

Calculate the center of gravity (centroid) of the given closed polygon. The polygon has to be non-selfintersecting!

Namespace: Altaxo.Geometry.Double_2D
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static PointD2D GetClosedPolygonCentroid(
	IEnumerable<(double X, double Y)> closedPolygon
)

Parameters

closedPolygon  IEnumerableValueTupleDouble, Double
The closed polygon.

Return Value

PointD2D
The center of gravity of the given polygon.
See Also