You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Angle Metrics » FIL.AngleBetweenThreePoints
Measures the angle defined by three consecutive points.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void AngleBetweenThreePoints ( FilNet.Point2D inPoint1, FilNet.Point2D inPoint2, FilNet.Point2D inPoint3, FilNet.RotationDirection inRotationDirection, out float outAbsoluteAngle, out float outDirectedAngle, out FilNet.Arc2D outArc )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoint1 | FilNet.Point2D | A point on one arm of an angle. | ||
![]() | inPoint2 | FilNet.Point2D | The middle point. | ||
![]() | inPoint3 | FilNet.Point2D | A point on another arm of the angle. | ||
![]() | inRotationDirection | FilNet.RotationDirection | Chooses one of two ways of measuring the angle. | ||
![]() | outAbsoluteAngle | float | Angle value used for measurements <0; 360> | ||
![]() | outDirectedAngle | float | Angle value used for clockwise transformations <-360; 360> | ||
![]() | outArc | FilNet.Arc2D | Angle visualization object |
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.