You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Angle Metrics » FIL.AngleBetweenDirections
Measures the rotation angle from first to second direction.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void AngleBetweenDirections ( float inDirection1, float inDirection2, FilNet.AngleRange inAngleRange, NullableValue<float> outAbsoluteAngle, NullableValue<float> outDirectedAngle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inDirection1 | float | Start direction. | ||
![]() | inDirection2 | float | Target direction. | ||
![]() | inAngleRange | FilNet.AngleRange | _0_180 | Switches between ranges <0; 90), <0; 180) and <0; 360) | |
![]() | outAbsoluteAngle | FilNet.NullableValue<float> | Can be null to skip this parameter calculation. | ||
![]() | outDirectedAngle | FilNet.NullableValue<float> | Can be null to skip this parameter calculation. |
Description
Direction is a number in the range of <0, 180) or <0, 360). This is controlled with the inAngleRange input. The angle is computed from first to second direction clockwise or counter-clockwise. If the rotation direction is not specified, chosen is the one that produces smaller absolute angle.
Examples

Function Overrides
- AngleBetweenDirections(Single, Single, Nullable<RotationDirection>, AngleRange, Single, Single)
- AngleBetweenDirections(Single, Single, Nullable<RotationDirection>, AngleRange, NullableValue<Single>, NullableValue<Single>)