Back to Aurora Vision Library website

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

SplitPointsByLine


Header: AVL.h
Namespace: avl
Module: FoundationLite

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

Syntax

C++
C#
 
void avl::SplitPointsByLine
(
	const atl::Array<avl::Point2D>& inPoints,
	const avl::Line2D& inLine,
	atl::Array<avl::Point2D>& outPoints1,
	atl::Array<avl::Point2D>& outPoints2
)

Parameters

Name Type Default Description
Input value inPoints const Array<Point2D>& Input points
Input value inLine const Line2D& Line used for splitting
Output value outPoints1 Array<Point2D>& Points with positive signed distance to the input line
Output value outPoints2 Array<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.