You are here: Start » AVL.NET » AVL.PathMassCenter(AvlNet.Path, AvlNet.Point2D)

AVL.PathMassCenter(AvlNet.Path, AvlNet.Point2D)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void PathMassCenter(
	AvlNet.Path inPath,
	out AvlNet.Point2D outMassCenter
)

Parameters

inPath
Type: AvlNet.Path
outMassCenter
Type: AvlNet.Point2D

Description

The operation computes the mass center of a path by averaging its points.

Examples

The resulting outMassCenters drawn onto the sample paths.

Errors

Error type Description
DomainError Empty path on input in PathMassCenter.

See also