Back to Adaptive Vision Library website
You are here: Start » Function Reference » Path Basics » GetPathSegment
GetPathSegment
Returns the selected segment of a path.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::GetPathSegment ( const avl::Path& inPath, int inIndex, const bool inInverse, avl::Segment2D& outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPath | const Path& | Input path | |||
inIndex | int | 0 - | |||
inInverse | const bool | Reversed order of segments | |||
outSegment | Segment2D& |
Errors
Error type | Description |
---|---|
DomainError | Empty path in GetPathSegment. |
DomainError | Incorrect segment index in GetPathSegment. |