You are here: Start » AVL.NET » AVS.AngleBetweenSegments Method
AVS.AngleBetweenSegments Method
Measures the angle between two segments with one of four possible metrics.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void AngleBetweenSegments ( AvlNet.Segment2D inSegment1, AvlNet.Segment2D inSegment2, AvlNet.AngleMetric inAngleMetric, bool inAutodetectOrientation, out float outAbsoluteAngle, out float outDirectedAngle, out AvlNet.Arc2D outArc )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSegment1 | AvlNet.Segment2D | First segment. | |||
inSegment2 | AvlNet.Segment2D | Second segment. | |||
inAngleMetric | AvlNet.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 | float | Angle value used for measurements <0; 360> | |||
outDirectedAngle | float | Angle value used for clockwise transformations <-360; 360> | |||
outArc | AvlNet.Arc2D | Angle visualization object |