Get center of gravity for the specified list of points.

Namespace:  AForge.Math.Geometry
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static Point GetCenterOfGravity(
	IEnumerable<IntPoint> cloud
)

Parameters

cloud
Type: System.Collections.Generic..::.IEnumerable<(Of <(IntPoint>)>)
List of points to calculate center of gravity for.

Return Value

Returns center of gravity (mean X-Y values) for the specified list of points.

See Also