|
PointsCloudGetFurthestPointsFromLine Method (IEnumerableIntPoint, IntPoint, IntPoint, IntPoint, Single, IntPoint, Single)
|
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 float distance1,
out IntPoint furthestPoint2,
out float distance2
)
Public Shared Sub GetFurthestPointsFromLine (
cloud As IEnumerable(Of IntPoint),
linePoint1 As IntPoint,
linePoint2 As IntPoint,
<OutAttribute> ByRef furthestPoint1 As IntPoint,
<OutAttribute> ByRef distance1 As Single,
<OutAttribute> ByRef furthestPoint2 As IntPoint,
<OutAttribute> ByRef distance2 As Single
)
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. - distance1
- Type: SystemSingle
Distance between the first found point and the given line. - furthestPoint2
- Type: AccordIntPoint
Second found furthest point (which is on the
opposite side from the line compared to the furthestPoint1); - distance2
- Type: SystemSingle
Distance between the second found point and the given line.
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