Start » Filter Reference » Geometry 2D » Geometry 2D Interpolations » LerpVectors
Module: | FoundationLite |
---|
Linearly interpolates between two vectors.
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inVector0 | Vector2D | ||
![]() |
inVector1 | Vector2D | ||
![]() |
inLambda | Real | -![]() ![]() |
Interpolation between the input vectors where 0.0 value is equal to inVector0 and 1.0 to inVector1 |
![]() |
outVector | Vector2D |
Examples
![]() |
LerpVectors performed on red inVector0 = (150, 150) and blue inVector1 = (-50, 50) with inLambda = 0,25. Green is the resulting outVector.
![]() |
LerpVectors performed on red inVector0 = (50, 50) and blue inVector1 = (-25, 25) with inLambda = -1,0. Green is the resulting outVector.
Remarks
Please note that:
- interpolation begins at inVector0,
- for positive inLambda values interpolation is performed in the direction of inVector1 while for negative - in the direction of a vector which, when visualized with the same base point, ends in the point acquired by mirroring the head of inVector0 by a line perpendicular to the vector (inVector0 - inVector1).
Complexity Level
This filter is available on Advanced Complexity Level.
Filter Group
This filter is member of LerpVectors filter group.