Back to Aurora Vision Studio website
	
                
                    
		
	You are here: Start » Filter Reference » Geometry 2D » Geometry 2D Interpolations » LerpSegments
| Module: | FoundationLite | 
|---|
Linearly interpolates between two segments.
| Name | Type | Range | Description | |
|---|---|---|---|---|
![]()  | 
				inSegment0 | Segment2D | ||
![]()  | 
				inSegment1 | Segment2D | ||
![]()  | 
				inLambda | Real | -  - ![]()  | 
				Interpolation between the input segments where 0.0 value is equal to inSegment0 and 1.0 to inSegment1 | 
![]()  | 
				inIgnoreOrientation | Bool | ||
![]()  | 
				outSegment | Segment2D | ||
Examples
Description of usage of this filter can be found in examples and tutorial: Pins.
![]()  | 
LerpSegments performed on red inSegment0 and blue inSegment1 with inLambda = 0,25. Green is the resulting outSegment.
![]()  | 
LerpSegments performed on red inSegment0 and blue inSegment1 with inLambda = -1,0. Green is the resulting outSegment.
Remarks
Please note that:
- interpolation begins at inSegment0,
 - for positive inLambda values interpolation is performed in the direction of inSegment1 while for negative - in the direction of a segment which is the result of the following operation: (inSegment0 - inSegment1), in example a segment consisting of inSegment1 points mirrored by the corresponding inSegment0 points.
 
Complexity Level
This filter is available on Advanced Complexity Level.

 Advanced
 - 

