Find two furthest points 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 void GetFurthestPointsFromLine(
	IEnumerable<IntPoint> cloud,
	IntPoint linePoint1,
	IntPoint linePoint2,
	out IntPoint furthestPoint1,
	out float distance1,
	out IntPoint furthestPoint2,
	out float distance2
)

Parameters

cloud
Type: System.Collections.Generic..::.IEnumerable<(Of <(IntPoint>)>)
Collection of points to search furthest points in.
linePoint1
Type: AForge..::.IntPoint
First point forming the line.
linePoint2
Type: AForge..::.IntPoint
Second point forming the line.
furthestPoint1
Type: AForge..::.IntPoint %
First found furthest point.
distance1
Type: System..::.Single %
Distance between the first found point and the given line.
furthestPoint2
Type: AForge..::.IntPoint %
Second found furthest point (which is on the opposite side from the line compared to the furthestPoint1);
distance2
Type: System..::.Single %
Distance between the second found point and the given line.

Remarks

The method finds two furthest points from the specified line, where one point is on one side from the line and the second point is on another side from the line.

See Also