Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Intersections » SegmentArrayIntersections

SegmentArrayIntersections


Header: AVL.h
Namespace: avl
Module: FoundationLite

Computes a common points or segment of any segments from the set.

Syntax

C++
C#
 
void avl::SegmentArrayIntersections
(
	const atl::Array<avl::Segment2D>& inSegments,
	atl::Array<avl::Point2D>& outIntersectionPoints,
	atl::Array<int>& outFirstIntersectionIndices,
	atl::Array<int>& outSecondIntersectionIndices,
	atl::Array<avl::Segment2D>& outOverlapSegments,
	atl::Array<int>& outFirstOverlapIndices,
	atl::Array<int>& outSecondOverlapIndices
)

Parameters

Name Type Default Description
Input value inSegments const Array<Segment2D>& Input segments
Output value outIntersectionPoints Array<Point2D>& Intersection points
Output value outFirstIntersectionIndices Array<int>& First indices of the input segments which corresponds to the intersection points
Output value outSecondIntersectionIndices Array<int>& Second indices of the input segments which corresponds to the intersection points
Output value outOverlapSegments Array<Segment2D>& Overlap segments
Output value outFirstOverlapIndices Array<int>& First indices of the input segments which corresponds to the overlap segments
Output value 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.