Back to Adaptive Vision Library website

You are here: Start » Function Reference » Path » Path Combinators » PathLineIntersections

PathLineIntersections


Header: AVL.h
Namespace: avl
Module: FoundationPro

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
)

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

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outSegmentIndices.

Read more about Optional Outputs.

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in PathLineIntersections.