You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Angle Metrics » AVL.AngleBetweenThreePoints

AVL.AngleBetweenThreePoints

Measures the angle defined by three consecutive points.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void AngleBetweenThreePoints
(
	AvlNet.Point2D inPoint1,
	AvlNet.Point2D inPoint2,
	AvlNet.Point2D inPoint3,
	AvlNet.RotationDirection inRotationDirection,
	NullableValue<float> outAbsoluteAngle,
	NullableValue<float> outDirectedAngle,
	NullableValue<AvlNet.Arc2D> outArc
)

Parameters

Name Type Range Default Description
inPoint1AvlNet.Point2DA point on one arm of an angle.
inPoint2AvlNet.Point2DThe middle point.
inPoint3AvlNet.Point2DA point on another arm of the angle.
inRotationDirectionAvlNet.RotationDirectionChooses one of two ways of measuring the angle.
outAbsoluteAngleAvlNet.NullableValue<float> Can be null to skip this parameter calculation.
outDirectedAngleAvlNet.NullableValue<float> Can be null to skip this parameter calculation.
outArcAvlNet.NullableValue<AvlNet.Arc2D> 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 some two of the input points are almost equal.

Function Overrides

See also