You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AVL.SplitPointsByLine

AVL.SplitPointsByLine

Separates the points being on one side of the input line from the others.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SplitPointsByLine
(
	IList<AvlNet.Point2D> inPoints,
	AvlNet.Line2D inLine,
	IList<AvlNet.Point2D> outPoints1,
	IList<AvlNet.Point2D> outPoints2
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>Input points.
inLineAvlNet.Line2DLine used for splitting.
outPoints1System.Collections.Generic.IList<AvlNet.Point2D>Points with positive signed distance to the input line.
outPoints2System.Collections.Generic.IList<AvlNet.Point2D>Points with negative signed distance to the input line.

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in SplitPointsByLine.

See also