|
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
)
Public Shared Sub GetFurthestPointsFromLine (
cloud As IEnumerable(Of IntPoint),
linePoint1 As IntPoint,
linePoint2 As IntPoint,
<OutAttribute> ByRef furthestPoint1 As IntPoint,
<OutAttribute> ByRef furthestPoint2 As IntPoint
)
Request Example
View SourceParameters
- 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