Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Path Basics »
GetPointOnPath
Header: | AVL.h |
Namespace: | avl |
Returns a path point of desired distance (measured along path) from the first point of the path.
Syntax
C++
C#
void avl::GetPointOnPath
(
const avl::Path& inPath,
const float inDistanceAlongPath,
avl::Point2D& outPoint
)
Parameters
|
Name |
Type |
Range |
Default |
Description |
![](../../img/in.png) |
inPath |
const Path& |
|
|
Input path |
![](../../img/in.png) |
inDistanceAlongPath |
const float |
0.0 - ![](../../img/infinity.png) |
|
Distance along path from the first characteristic point to the desired point |
![](../../img/out.png) |
outPoint |
Point2D& |
|
|
|
Description
Returns a path point of desired distance (measured along path) from the first point of the path.
Examples
Point with a distance of 5 from path origin.
Errors
List of possible exceptions:
Error type |
Description |
DomainError |
Desired distance along path exceeds the path length in GetPointOnPath. |