Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Interpolations » LerpPaths

LerpPaths


Linearly interpolates between two paths.

Syntax

C++
C#
 
void avl::LerpPaths
(
	const avl::Path& inPath1,
	const avl::Path& inPath2,
	const atl::real inLambda,
	avl::Path& outPath
)

Parameters

Name Type Range Default Description
inPath1 const Path& First input path
inPath2 const Path& Second input path
inLambda const real - - 0.5f 0.0 makes a copy of the first path, 1.0 - of the second, other values make interpolations
outPath 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