Click or drag to resize
Accord.NET (logo)

PointsCloudGetFurthestPointFromLine Method (IEnumerableIntPoint, IntPoint, IntPoint, Single)

Find the furthest point from the specified line.

Namespace:  Accord.Math.Geometry
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static IntPoint GetFurthestPointFromLine(
	IEnumerable<IntPoint> cloud,
	IntPoint linePoint1,
	IntPoint linePoint2,
	out float distance
)
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.
distance
Type: SystemSingle
Distance between the furthest found point and the given line.

Return Value

Type: IntPoint
Returns a point, which is the furthest away from the specified line.
Remarks
See Also