You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Features » AVL.PointsMassCenter

AVL.PointsMassCenter

Computes the central point of the input points.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void PointsMassCenter
(
	IList<AvlNet.Point2D> inPoints,
	out AvlNet.Point2D outMassCenter
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>
outMassCenterAvlNet.Point2D

Examples

PointsMassCenter performed on a set of 8 input points. The orange point is the result.

Errors

List of possible exceptions:

Error type Description
DomainError Input point array is empty in PointsMassCenter.

See also