Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Interpolations » LerpVectors_Radial
Linearly interpolates between two radial vectors.
Syntax
C++
C#
void avl::LerpVectors_Radial ( const avl::Vector2D& inVector1, const avl::Vector2D& inVector2, atl::Optional<avl::RotationDirection::Type> inRotationDirection, const atl::real inLambda, avl::Vector2D& outVector )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inVector1 | const Vector2D& | |||
![]() |
inVector2 | const Vector2D& | |||
![]() |
inRotationDirection | Optional<RotationDirection::Type> | NIL | Clockwise, counter-clockwise or auto | |
![]() |
inLambda | const real | - - ![]() |
0.5f | 0.0 makes a copy of the first vector, 1.0 - of the second, other values make interpolations |
![]() |
outVector | Vector2D& |
Description
Note that because of inaccuracies of floating-point arithmetic, some geometric operations (including this one) may lead to unpredictable results for degenerated cases. In this filter such a case occurs when a zero vector is given on input.
Examples
![]() |
LerpVectors_Radial performed on two vectors: inVector1 DeltaX = 50, DeltaY = 50, inVector2 DeltaX = -25, DeltaY = 25, inRotationDirection = CounterClockwise, inLambda = 0,25. The green vector is the output vector.


- 
