M_Rhino_Geometry_Line_TryFitLineToPoints - mcneel/rhinocommon-api-docs GitHub Wiki

Line.TryFitLineToPoints Method

Attempt to fit a line through a set of points.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static bool TryFitLineToPoints(
	IEnumerable<Point3d> points,
	out Line fitLine
)

VB

Public Shared Function TryFitLineToPoints ( 
	points As IEnumerable(Of Point3d),
	<OutAttribute> ByRef fitLine As Line
) As Boolean

Parameters

 

points
Type: System.Collections.Generic.IEnumerable(Point3d)
The points through which to fit.
fitLine
Type: Rhino.Geometry.Line
The resulting line on success.

Return Value

Type: Boolean
true on success, false on failure.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Line Structure
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️