Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Path Combinators »
PathLineIntersections
Computes the common points of a path and a line.
Syntax
C++
C#
void avl::PathLineIntersections
(
const avl::Path& inPath,
const avl::Line2D& inLine,
atl::Array<avl::Point2D>& outIntersectionPoints,
atl::Optional<atl::Array<int>&> outSegmentIndices = atl::NIL
)
void PathLineIntersections
(
Path inPath,
Line2D inLine,
out Point2D[] outIntersectionPoints,
out int[] outSegmentIndices
)
Parameters
|
Name |
Type |
Default |
Description |
 |
inPath |
const Path& |
|
Input path |
 |
inLine |
const Line2D& |
|
Input line |
 |
outIntersectionPoints |
Array<Point2D>& |
|
Intersections between the path and the line |
 |
outSegmentIndices |
Optional<Array<int>&> |
NIL |
Indices of the segments of the path which generate found intersection points |
Errors
| Error type |
Description |
| DomainError |
Indefinite line on input in PathLineIntersections. |