PointsCloudGetFurthestPointFromLine Method (IEnumerableIntPoint, IntPoint, IntPoint, Single) |
Namespace: Accord.Math.Geometry
public static IntPoint GetFurthestPointFromLine( IEnumerable<IntPoint> cloud, IntPoint linePoint1, IntPoint linePoint2, out float distance )
The method finds the furthest point from the specified line. Unlike the GetFurthestPointsFromLine(IEnumerableIntPoint, IntPoint, IntPoint, IntPoint, Single, IntPoint, Single) method, this method find only one point, which is the furthest away from the line regardless of side from the line.