You are here: Start » AVL.NET » 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 | |
|---|---|---|---|---|---|
![]()  | inVector1 | Avl.Vector2D | Start vector. | ||
![]()  | inVector2 | Avl.Vector2D | Target vector. | ||
![]()  | inRotationDirection | Atl.Optional<Avl.RotationDirection> | Clockwise, counter-clockwise or automatic (by smaller angle). Default value: atl::NIL. | ||
![]()  | outAbsoluteAngle | Atl.Optional<float> | Angle value used for measurements <0; 360>. | ||
![]()  | outDirectedAngle | Atl.Optional<float> | Angle value used for clockwise transformations <-360; 360>. | 


