AngleBetweenSegments
Measures the angle between two segments with one of four possible metrics.
Syntax
C++
Python
def AngleBetweenSegments( inSegment1: Segment2D, inSegment2: Segment2D, /, *, inAngleMetric: AngleMetric = AngleMetric.VectorClockwise, inAutodetectOrientation: bool = True, outArc: Arc2D | None = None ) -> ( outAbsoluteAngle: float, outDirectedAngle: float )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inSegment1 | Segment2D | First segment | |
![]() |
inSegment2 | Segment2D | Second segment | |
![]() |
inAngleMetric | AngleMetric | AngleMetric.VectorClockwise | 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 |
![]() |
outAbsoluteAngle | float | Angle value used for measurements <0; 360> | |
![]() |
outDirectedAngle | float | Angle value used for clockwise transformations <-360; 360> | |
![]() |
outArc | Arc2D | None | None | Angle visualization object |


