You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » AVL.FitSegmentToPoints
Approximates points with a segment using selected outliers suppression method.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void FitSegmentToPoints ( IList<AvlNet.Point2D> inPoints, AvlNet.Range? inRange, AvlNet.MEstimator? inOutlierSuppression, out AvlNet.Segment2D outSegment, NullableRef<List<AvlNet.Point2D>> outInliers )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | System.Collections.Generic.IList<AvlNet.Point2D> | ||||
inRange | AvlNet.Range? | Determines which array points take part in fitting process. Default value: atl::NIL. | |||
inOutlierSuppression | AvlNet.MEstimator? | ||||
outSegment | AvlNet.Segment2D | ||||
outInliers | AvlNet.NullableRef<System.Collections.Generic.List<AvlNet.Point2D>> | Can be null to skip this parameter calculation. |
Description
The orientation of the resulting outSegment is always between 0 and 180 degrees.
Examples
Function Overrides
- FitSegmentToPoints(IList<Point2D>, Segment2D)
- FitSegmentToPoints(IList<Point2D>, Nullable<Range>, Nullable<MEstimator>, Segment2D)