You are here: Start » AVL.NET » AVL.PointsMassCenter Method

AVL.PointsMassCenter Method

Computes the central point of the input points.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void PointsMassCenter(
	AvlNet.Point2D[] inPoints,
	out AvlNet.Point2D outMassCenter
)

Parameters

Name Type Range Default Description
inPointsAvlNet.Point2D
outMassCenterAvlNet.Point2D

Examples

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

Errors

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

See also