You are here: Start » AVL.NET » AVL.AngleBetweenThreePoints Method
AVL.AngleBetweenThreePoints Method
Measures the angle defined by three consecutive points.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void AngleBetweenThreePoints( AvlNet.Point2D inPoint1, AvlNet.Point2D inPoint2, AvlNet.Point2D inPoint3, AvlNet.RotationDirection inRotationDirection )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inPoint1 | AvlNet.Point2D | A point on one arm of an angle. | ||
![]() | inPoint2 | AvlNet.Point2D | The middle point. | ||
![]() | inPoint3 | AvlNet.Point2D | A point on another arm of the angle. | ||
![]() | inRotationDirection | AvlNet.RotationDirection | Chooses one of two ways of measuring the angle. |
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 some two of the input points are almost equal.
Errors
| Error type | Description |
|---|---|
| DomainError | Unsupported angle metric in AngleBetweenThreePoints. |

