Find the furthest point from the specified line.

Namespace:  AForge.Math.Geometry
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static IntPoint GetFurthestPointFromLine(
	IEnumerable<IntPoint> cloud,
	IntPoint linePoint1,
	IntPoint linePoint2
)

Parameters

cloud
Type: System.Collections.Generic..::.IEnumerable<(Of <(IntPoint>)>)
Collection of points to search furthest point in.
linePoint1
Type: AForge..::.IntPoint
First point forming the line.
linePoint2
Type: AForge..::.IntPoint
Second point forming the line.

Return Value

Returns a point, which is the furthest away from the specified line.

Remarks

The method finds the furthest point from the specified line. Unlike the GetFurthestPointsFromLine(IEnumerable<(Of <(IntPoint>)>), IntPoint, IntPoint, IntPoint%, IntPoint%) method, this method find only one point, which is the furthest away from the line regardless of side from the line.

See Also