PolygonMathGetClosedPolygonCentroid Method |
Calculate the center of gravity (centroid) of the given closed polygon. The polygon
has to be non-selfintersecting!
Namespace: Altaxo.Geometry.Int64_2DAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static PointD2D GetClosedPolygonCentroid(
IEnumerable<IntPoint> closedPolygon
)
Parameters
- closedPolygon IEnumerableIntPoint
- The closed polygon.
Return Value
PointD2DThe center of gravity of the given polygon.
See Also