You are here: Start » AVL.NET » AVS.AngleBetweenSegments Method

AVS.AngleBetweenSegments Method

Measures the angle between two segments with one of four possible metrics.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void AngleBetweenSegments
(
	AvlNet.Segment2D inSegment1,
	AvlNet.Segment2D inSegment2,
	AvlNet.AngleMetric inAngleMetric,
	bool inAutodetectOrientation,
	out float outAbsoluteAngle,
	out float outDirectedAngle,
	out AvlNet.Arc2D outArc
)

Parameters

Name Type Range Default Description
inSegment1AvlNet.Segment2DFirst segment.
inSegment2AvlNet.Segment2DSecond segment.
inAngleMetricAvlNet.AngleMetricChooses one of four possible ways of measuring the angle.
inAutodetectOrientationboolTrueAutodetects orientation of the segments assuming that these are two consecutive sides of a polygon. Default value: True.
outAbsoluteAnglefloatAngle value used for measurements <0; 360>
outDirectedAnglefloatAngle value used for clockwise transformations <-360; 360>
outArcAvlNet.Arc2DAngle visualization object

Function Overrides

See also