Click or drag to resize
Accord.NET (logo)

PointsCloudGetFurthestPointsFromLine Method (IEnumerableIntPoint, IntPoint, IntPoint, IntPoint, IntPoint)

Find two furthest points from the specified line.

Namespace:  Accord.Math.Geometry
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static void GetFurthestPointsFromLine(
	IEnumerable<IntPoint> cloud,
	IntPoint linePoint1,
	IntPoint linePoint2,
	out IntPoint furthestPoint1,
	out IntPoint furthestPoint2
)
Request Example View Source

Parameters

cloud
Type: System.Collections.GenericIEnumerableIntPoint
Collection of points to search furthest points in.
linePoint1
Type: AccordIntPoint
First point forming the line.
linePoint2
Type: AccordIntPoint
Second point forming the line.
furthestPoint1
Type: AccordIntPoint
First found furthest point.
furthestPoint2
Type: AccordIntPoint
Second found furthest point (which is on the opposite side from the line compared to the furthestPoint1);
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