You are here: Start » AVL.NET » Invoke.LerpSegments

Invoke.LerpSegments

Linearly interpolates between two segments.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void LerpSegments
(
	Avl.Segment2D inSegment0,
	Avl.Segment2D inSegment1,
	float inLambda,
	bool inIgnoreOrientation,
	out Avl.Segment2D outSegment
)

Parameters

Name Type Range Default Description
inSegment0Avl.Segment2D
inSegment1Avl.Segment2D
inLambdafloat<-INF, INF>0.5fInterpolation between the input segments where 0.0 value is equal to inSegment0 and 1.0 to inSegment1. Default value: 0.5f.
inIgnoreOrientationbool
outSegmentAvl.Segment2D

See also