You are here: Start » AVL.NET » Function Reference » Path » Path Features » AVL.PathMassCenter

AVL.PathMassCenter

Computes the average of the path points (all, not only characteristic ones).

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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

Parameters

Name Type Range Default Description
inPathAvlNet.PathInput path.
outMassCenterAvlNet.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

List of possible exceptions:

Error type Description
DomainError Empty path on input in PathMassCenter.

See also