Back to FabImage Library website
You are here: Start » Function Reference » Path » Path Combinators » PathSegmentIntersections

PathSegmentIntersections
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Computes the common points of a path and a segment.
Syntax
C++
C#
void fil::PathSegmentIntersections ( const fil::Path& inPath, const fil::Segment2D& inSegment, ftl::Array<fil::Point2D>& outIntersectionPoints, ftl::Optional<ftl::Array<int>&> outSegmentIndices = ftl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPath | const Path& | Input path | |
![]() |
inSegment | const Segment2D& | Input segment | |
![]() |
outIntersectionPoints | Array<Point2D>& | Intersections between the path and the segment | |
![]() |
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 ftl::NIL
to these parameters: outSegmentIndices.
Read more about Optional Outputs.