You are here: Start » AVL.NET » AVL.AveragePath
Computes the average of two paths (of equal size and type) point by point.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void AveragePath ( AvlNet.Path inPath1, AvlNet.Path inPath2, out AvlNet.Path outPath )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inPath1 | AvlNet.Path | Input path. | ||
![]() | inPath2 | AvlNet.Path | Input path. | ||
![]() | outPath | AvlNet.Path | Output path. |
Description
The operation computes the average of two paths of equal size and type (open/closed). Each point of the resulting path is an average of the corresponding points in the input paths.
Examples
![]() |
![]() |
![]() |
AveragePath run on the sample paths.
Errors
| Error type | Description |
|---|---|
| DomainError | Input paths have unequal size in AveragePath. |
| DomainError | Open/closed paths mismatch in AveragePath. |





