Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » SplitPointsByLine
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Separates the points being on one side of the input line from the others.
Syntax
C++
C#
void fil::SplitPointsByLine ( const ftl::Array<fil::Point2D>& inPoints, const fil::Line2D& inLine, ftl::Array<fil::Point2D>& outPoints1, ftl::Array<fil::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. |