You are here: Start » AVL.NET » Invoke.AngleBetweenSegments
Measures the angle between two segments with one of four possible metrics.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void AngleBetweenSegments ( Avl.Segment2D inSegment1, Avl.Segment2D inSegment2, Avl.AngleMetric inAngleMetric, bool inAutodetectOrientation, Optional<float> outAbsoluteAngle, Optional<float> outDirectedAngle, Optional<Avl.Arc2D> outArc )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inSegment1 | Avl.Segment2D | First segment. | ||
![]()  | inSegment2 | Avl.Segment2D | Second segment. | ||
![]()  | inAngleMetric | Avl.AngleMetric | Chooses one of four possible ways of measuring the angle. | ||
![]()  | inAutodetectOrientation | bool | True | Autodetects orientation of the segments assuming that these are two consecutive sides of a polygon. Default value: True. | |
![]()  | outAbsoluteAngle | Atl.Optional<float> | Angle value used for measurements <0; 360>. | ||
![]()  | outDirectedAngle | Atl.Optional<float> | Angle value used for clockwise transformations <-360; 360>. | ||
![]()  | outArc | Atl.Optional<Avl.Arc2D> | Angle visualization object. | 


