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