You are here: Start » AVL.NET » Function Reference » Path » Path Combinators » AVL.AveragePath

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,
	AvlNet.Path outPath
)

Parameters

Name Type Range Default Description
inPath1AvlNet.PathInput path.
inPath2AvlNet.PathInput path.
outPathAvlNet.PathOutput 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

List of possible exceptions:

Error type Description
DomainError Input paths have unequal size in AveragePath.
DomainError Open/closed paths mismatch in AveragePath.

See also