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,
	NullableValue<float> outAbsoluteAngle,
	NullableValue<float> outDirectedAngle,
	NullableValue<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.
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.

Function Overrides

See also