You are here: Start » AVL.NET » AVL.PathPathIntersections Method

AVL.PathPathIntersections Method

Computes the common points of two paths.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void PathPathIntersections(
	AvlNet.Path inPath1,
	AvlNet.Path inPath2,
	out AvlNet.Point2D[] outIntersectionPoints,
	out int[] outSegmentIndices1,
	out int[] outSegmentIndices2
)

Parameters

Name Type Range Default Description
inPath1AvlNet.PathInput path.
inPath2AvlNet.PathInput path.
outIntersectionPointsAvlNet.Point2DIntersections between the input paths.
outSegmentIndices1intIndices of the segments of the first path which generate found intersection points
outSegmentIndices2intIndices 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.

See also