Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Interpolations » LerpPoints
Linearly interpolates between two points.
Syntax
C++
C#
void avl::LerpPoints ( const avl::Point2D& inPoint1, const avl::Point2D& inPoint2, const atl::real inLambda, avl::Point2D& outPoint )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPoint1 | const Point2D& | |||
![]() |
inPoint2 | const Point2D& | |||
![]() |
inLambda | const real | - - ![]() |
0.5f | 0.0 makes a copy of the first point, 1.0 - of the second, other values make interpolations |
![]() |
outPoint | Point2D& |
Examples
![]() |
![]() |
LerpPoints performed on two points, inLambda = 0,25.


- 

