RhinoCommon API
LineTryFitLineToPoints Method |
Attempt to fit a line through a set of points.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

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: Booleantrue on success, false on failure.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14