Back to Adaptive Vision Library website
You are here: Start » Function Reference » Path Basics » CreateSegmentPath
![](../../img/icon/CreateSegmentPath.png)
CreateSegmentPath
Creates an open path containing collinear, equidistant points.
Syntax
C++
C#
void avl::CreateSegmentPath ( const avl::Point2D& inBegin, const avl::Point2D& inEnd, int inPointCount, avl::Path& outPath )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inBegin | const Point2D& | First point of the path | ||
![]() |
inEnd | const Point2D& | Last point of the path | ||
![]() |
inPointCount | int | 2 - ![]() |
2 | Number of points in the created path |
![]() |
outPath | Path& | Output path |
Description
The operation produces an open path that consist of inPointCount equidistant points selected along the segment between inBegin and inEnd.
Examples
![]() |
CreateSegmentPath run with inPointCount = 5.