Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Intersections » SegmentArrayIntersections
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Computes a common points or segment of any segments from the set.
Syntax
C++
C#
void fil::SegmentArrayIntersections ( const ftl::Array<fil::Segment2D>& inSegments, ftl::Array<fil::Point2D>& outIntersectionPoints, ftl::Array<int>& outFirstIntersectionIndices, ftl::Array<int>& outSecondIntersectionIndices, ftl::Array<fil::Segment2D>& outOverlapSegments, ftl::Array<int>& outFirstOverlapIndices, ftl::Array<int>& outSecondOverlapIndices )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSegments | const Array<Segment2D>& | Input segments | |
![]() |
outIntersectionPoints | Array<Point2D>& | Intersection points | |
![]() |
outFirstIntersectionIndices | Array<int>& | First indices of the input segments which corresponds to the intersection points | |
![]() |
outSecondIntersectionIndices | Array<int>& | Second indices of the input segments which corresponds to the intersection points | |
![]() |
outOverlapSegments | Array<Segment2D>& | Overlap segments | |
![]() |
outFirstOverlapIndices | Array<int>& | First indices of the input segments which corresponds to the overlap segments | |
![]() |
outSecondOverlapIndices | Array<int>& | Second indices of the input segments which corresponds to the overlap segments |
Examples
![]() |
![]() |
SegmentArrayIntersections performed on segments.
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.