You are here: Start » AVL.NET » AVL.SegmentOrientation
Computes the orientation of a segment.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void SegmentOrientation ( AvlNet.Segment2D inSegment, AvlNet.AngleRange inAngleRange, out float outOrientationAngle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSegment | AvlNet.Segment2D | ||||
inAngleRange | AvlNet.AngleRange | _0_180 | Switches between 0-180 or 0-360 degrees. Default value: _0_180. | ||
outOrientationAngle | float |
Description
Note that because of inaccuracies of floating-point arithmetic, some geometric operations (including this one) may lead to unpredictable results for degenerated cases. In this filter such a case occurs when an empty segment is given on input.