Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » 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 | |
---|---|---|---|---|
inPoints | const Array<Point2D>& | Input points | ||
inLine | const Line2D& | Line used for splitting | ||
outPoints1 | Array<Point2D>& | Points with positive signed distance to the input line | ||
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. |