Click or drag to resize

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
)

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.5
See Also