You are here: Start » AVL.NET » AVL.AveragePath Method

AVL.AveragePath Method

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

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

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

See also