Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Spatial Transforms » SplitPointsByLine
SplitPointsByLine
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
Separates the points being on one side of the input line from the others.
Syntax
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. |


