You are here: Start » AVL.NET » Invoke.AngleBetweenVectors

Invoke.AngleBetweenVectors

Measures the angle between two vectors.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void AngleBetweenVectors
(
	Avl.Vector2D inVector1,
	Avl.Vector2D inVector2,
	Optional<Avl.RotationDirection> inRotationDirection,
	Optional<float> outAbsoluteAngle,
	Optional<float> outDirectedAngle
)

Parameters

Name Type Range Default Description
inVector1Avl.Vector2DStart vector.
inVector2Avl.Vector2DTarget vector.
inRotationDirectionAtl.Optional<Avl.RotationDirection>Clockwise, counter-clockwise or automatic (by smaller angle). Default value: atl::NIL.
outAbsoluteAngleAtl.Optional<float>Angle value used for measurements <0; 360>.
outDirectedAngleAtl.Optional<float>Angle value used for clockwise transformations <-360; 360>.

See also