PointsCloudGetFurthestPointFromLine Method (IEnumerableIntPoint, IntPoint, IntPoint) |
Namespace: Accord.Math.Geometry
public static IntPoint GetFurthestPointFromLine( IEnumerable<IntPoint> cloud, IntPoint linePoint1, IntPoint linePoint2 )
The method finds the furthest point from the specified line. Unlike the GetFurthestPointsFromLine(IEnumerableIntPoint, 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.