Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Path Combinators »
PathPathIntersections
Computes the common points of two paths.
Syntax
C++
C#
void avl::PathPathIntersections
(
const avl::Path& inPath1,
const avl::Path& inPath2,
atl::Array<avl::Point2D>& outIntersectionPoints,
atl::Optional<atl::Array<int>&> outSegmentIndices1 = atl::NIL,
atl::Optional<atl::Array<int>&> outSegmentIndices2 = atl::NIL
)
void PathPathIntersections
(
Path inPath1,
Path inPath2,
out Point2D[] outIntersectionPoints,
out int[] outSegmentIndices1,
out int[] outSegmentIndices2
)
Parameters
|
Name |
Type |
Default |
Description |
 |
inPath1 |
const Path& |
|
Input path |
 |
inPath2 |
const Path& |
|
Input path |
 |
outIntersectionPoints |
Array<Point2D>& |
|
Intersections between the input paths |
 |
outSegmentIndices1 |
Optional<Array<int>&> |
NIL |
Indices of the segments of the first path which generate found intersection points |
 |
outSegmentIndices2 |
Optional<Array<int>&> |
NIL |
Indices of the segments of the second path which generate found intersection points |
Description
The operation computes an array of the intersection points of two given paths.
Examples
PathPathIntersections run on the sample paths. The resulting outIntersectionPoints were drawn onto the input paths.