AngleBetweenVectors


Measures the angle between two vectors.

Syntax

C++
Python
 
def AngleBetweenVectors(
	inVector1: Vector2D,
	inVector2: Vector2D,
	/,
	*,
	inRotationDirection: RotationDirection | None = None
)
-> (
	outAbsoluteAngle: float,
	outDirectedAngle: float
)

Parameters

Name Type Default Description
Input value inVector1 Vector2D Start vector
Input value inVector2 Vector2D Target vector
Input value inRotationDirection RotationDirection | None None Clockwise, counter-clockwise or automatic (by smaller angle)
Output value outAbsoluteAngle float Angle value used for measurements <0; 360>
Output value outDirectedAngle float Angle value used for clockwise transformations <-360; 360>