This document is archived and information here might be outdated.  Recommended version.

ISegment.ReturnTurnDirection Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISegment Interface > ISegment.ReturnTurnDirection Method
ArcGIS Developer Help

ISegment.ReturnTurnDirection Method

Finds turn direction between two connected segments.

[Visual Basic .NET]
Public Function ReturnTurnDirection ( _
    ByVal otherSegment As ISegment _
) As Integer
public int ReturnTurnDirection (
    ISegment otherSegment
HRESULT ReturnTurnDirection(
  ISegment* otherSegment

otherSegment is a parameter of type ISegment*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Returns the Turn Direction of the Segment immediately following the current Segment.  The two segments must be connected between the To Point of the first segment and the From Point of the second segment.  ReturnTurnDirection returns a long corresponding to an esriTurnDirectionEnum or a combination of esriNoTurn or esriUTurn and esriRightTurn or esriLeftTurn.  If the two segments are tangential at the point of connection and not completely colinear, then a combination of esriTurnDirectionEnums are returned.


ReturnTurnDirection is only available for Lines and CircularArcs, not BezierCurves or EllipticArcs.

ReturnTurnDirection Example

See Also

ISegment Interface