Line.TryFitLineToPoints Method

LineTryFitLineToPoints Method

Attempt to fit a line through a set of points.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static bool TryFitLineToPoints(
	IEnumerable<Point3d> points,
	out Line fitLine
)
Public Shared Function TryFitLineToPoints ( 
	points As IEnumerable(Of Point3d),
	<OutAttribute> ByRef fitLine As Line
) As Boolean

Parameters

points
Type: System.Collections.GenericIEnumerablePoint3d
The points through which to fit.
fitLine
Type: Rhino.GeometryLine
The resulting line on success.

Return Value

Type: Boolean
true on success, false on failure.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also