Start » Filter Reference » Geometry 2D » Geometry 2D Interpolations » LerpPoints
Module: | FoundationLite |
---|
Linearly interpolates between two points.
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inPoint0 | Point2D | ||
![]() |
inPoint1 | Point2D | ||
![]() |
inLambda | Real | -![]() ![]() |
Interpolation between the input points where 0.0 value is equal to inPoint0 and 1.0 to inPoint1 |
![]() |
outPoint | Point2D |
Examples
![]() |
LerpPoints performed on red inPoint0 and blue inPoint1 with inLambda = 0,25. Green is the resulting outPoint.
![]() |
LerpPoints performed on red inPoint0 and blue inPoint1 with inLambda = -1,0. Green is the resulting outPoint.
Remarks
Please note that:
- interpolation begins at inPoint0,
- for positive inLambda values interpolation is performed in the direction of inPoint1 while for negative - in the direction of a point which is the result of the following operation: (inPoint0 - inPoint1), in example a point acquired by mirroring inPoint1 by inPoint0.
Complexity Level
This filter is available on Advanced Complexity Level.