M_Rhino_Geometry_Line_TryFitLineToPoints - mcneel/rhinocommon-api-docs GitHub Wiki
Attempt to fit a line through a set of points.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
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
- points
- Type: System.Collections.Generic.IEnumerable(Point3d)
The points through which to fit. - fitLine
- Type: Rhino.Geometry.Line
The resulting line on success.
Type: Boolean
true on success, false on failure.
Supported in: 6.0.16224.21491, 5D58w