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
Input value inDirection1 float Start direction
Input value inDirection2 float Target direction
Input value inRotationDirection RotationDirection | None None Clockwise, counter-clockwise or automatic (by smaller angle)
Input value inAngleRange AngleRange AngleRange._0_180 Switches between ranges <0; 90), <0; 180) and <0; 360)
Output value outAbsoluteAngle float Angle value used for measurements <0; 360>
Output value outDirectedAngle float Angle value used for clockwise transformations <-360; 360>