AngleBetweenDirections
Measures the rotation angle from first to second direction.
Syntax
C++
Python
def AngleBetweenDirections( inDirection1: float, inDirection2: float, /, *, inRotationDirection: RotationDirection | None = None, inAngleRange: AngleRange = AngleRange._0_180 ) -> ( outAbsoluteAngle: float, outDirectedAngle: float )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inDirection1 | float | Start direction | |
![]() |
inDirection2 | float | Target direction | |
![]() |
inRotationDirection | RotationDirection | None | None | Clockwise, counter-clockwise or automatic (by smaller angle) |
![]() |
inAngleRange | AngleRange | AngleRange._0_180 | Switches between ranges <0; 90), <0; 180) and <0; 360) |
![]() |
outAbsoluteAngle | float | Angle value used for measurements <0; 360> | |
![]() |
outDirectedAngle | float | Angle value used for clockwise transformations <-360; 360> |


