You are here: Start » AVL.NET » 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 ( AvlNet.Point2D[] inPoints, AvlNet.MEstimator? inOutlierSuppression, out AvlNet.Segment2D outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | AvlNet.Point2D[] | |||
![]() | inOutlierSuppression | AvlNet.MEstimator? | |||
![]() | outSegment | AvlNet.Segment2D |
Description
The orientation of the resulting outSegment is always between 0 and 180 degrees.
Examples
![]() |
The resulting outSegment drawn with the input points, inOutlierSuppression = Auto.