You are here: Start » AVL.NET » AVL.SegmentOrientation(AvlNet.Segment2D, AvlNet.AngleRange, float)
AVL.SegmentOrientation(AvlNet.Segment2D, AvlNet.AngleRange, float)
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void SegmentOrientation( AvlNet.Segment2D inSegment, AvlNet.AngleRange inAngleRange, out float outOrientationAngle )
Parameters
- inSegment
- Type: AvlNet.Segment2D
- inAngleRange
- Type: AvlNet.AngleRange
- outOrientationAngle
- Type: System.Single
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.
Examples
![]() |
SegmentOrientation performed on a segment with parameters: X1 = 50, Y1 = 50, X2 = 300, Y2 = 300 and inAngleRange set to _0_180.
outOrientationAngle returns 45.

