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

AVL.AveragePath(AvlNet.Path, AvlNet.Path, AvlNet.Path)

Computes the average of two paths (of equal size and type) point by point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void AveragePath(
	AvlNet.Path inPath1,
	AvlNet.Path inPath2,
	out AvlNet.Path outPath
)

Parameters

inPath1
Type: AvlNet.Path
Input path
inPath2
Type: AvlNet.Path
Input path
outPath
Type: 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.

See also