Point3dList.ClosestPointInList Method

Point3dListClosestPointInList Method

Finds the point in a list of points that is closest to a test point.

Namespace:  Rhino.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Point3d ClosestPointInList(
	IList<Point3d> list,
	Point3d testPoint
)
Public Shared Function ClosestPointInList ( 
	list As IList(Of Point3d),
	testPoint As Point3d
) As Point3d

Parameters

list
Type: System.Collections.GenericIListPoint3d
A list of points.
testPoint
Type: Rhino.GeometryPoint3d
Point to compare against.

Return Value

Type: Point3d
A point.
Exceptions
ExceptionCondition
ArgumentException List must contain at least one point and testPoint must be valid.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also