You are here: Start » AVL.NET » AVL.PathMassCenter Method
AVL.PathMassCenter Method
Computes the average of the path points (all, not only characteristic ones).
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void PathMassCenter( AvlNet.Path inPath, out AvlNet.Point2D outMassCenter )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inPath | AvlNet.Path | Input path. | ||
![]() | outMassCenter | 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. |


