You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Angle Metrics » AVL.AngleBetweenVectors
Measures the angle between two vectors.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void AngleBetweenVectors ( AvlNet.Vector2D inVector1, AvlNet.Vector2D inVector2, NullableValue<float> outAbsoluteAngle, NullableValue<float> outDirectedAngle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inVector1 | AvlNet.Vector2D | Start vector. | |||
inVector2 | AvlNet.Vector2D | Target vector. | |||
outAbsoluteAngle | AvlNet.NullableValue<float> | Can be null to skip this parameter calculation. | |||
outDirectedAngle | AvlNet.NullableValue<float> | Can be null to skip this parameter calculation. |
Description
Note that because of inaccuracies of floating-point arithmetic, some geometric operations (including this one) may lead to unpredictable results for degenerated cases. In this filter such a case occurs when a zero vector is given on input.
Examples
Function Overrides
- AngleBetweenVectors(Vector2D, Vector2D, Nullable<RotationDirection>, Single, Single)
- AngleBetweenVectors(Vector2D, Vector2D, Nullable<RotationDirection>, NullableValue<Single>, NullableValue<Single>)