Back to Adaptive Vision Library website

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

LerpSegments


Linearly interpolates between two segments.

Syntax

C++
C#
 
void avl::LerpSegments
(
	const avl::Segment2D& inSegment1,
	const avl::Segment2D& inSegment2,
	atl::real inLambda,
	bool inIgnoreOrientation,
	avl::Segment2D& outSegment
)

Parameters

Name Type Range Default Description
inSegment1 const Segment2D&
inSegment2 const Segment2D&
inLambda real - - 0.5f 0.0 makes a copy of the first segment, 1.0 - of the second, other values make interpolations
inIgnoreOrientation bool
outSegment Segment2D&

Examples

LerpSegments performed on two segments, inLambda = 0,25.