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)
Since: 5.0
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.
See Also