Back to FabImage Library website

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

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
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.