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

AVL.LerpPaths(AvlNet.Path, AvlNet.Path, float, AvlNet.Path)

Linearly interpolates between two paths.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void LerpPaths(
	AvlNet.Path inPath1,
	AvlNet.Path inPath2,
	float inLambda,
	out AvlNet.Path outPath
)

Parameters

inPath1
Type: AvlNet.Path
First input path
inPath2
Type: AvlNet.Path
Second input path
inLambda
Type: System.Single
0.0 makes a copy of the first path, 1.0 - of the second, other values make interpolations
outPath
Type: AvlNet.Path
Output path

Examples

LerpPaths performed on two paths, inLambda = 0,25.

Errors

Error type Description
DomainError Numbers of points in paths are not the same in LerpPaths
DomainError Open and closed paths on input in LerpPaths

See also