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


IConstructCircularArc.ConstructBearingRadiusChord Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IC > IConstructCircularArc Interface > IConstructCircularArc.ConstructBearingRadiusChord Method
ArcGIS Developer Help

IConstructCircularArc.ConstructBearingRadiusChord Method

Constructs an arc with the given chord bearing, radius and chord distance.

[Visual Basic .NET]
Public Sub ConstructBearingRadiusChord ( _
    ByVal from As IPoint, _
    ByVal inAngle As Double, _
    ByVal isCCW As Boolean, _
    ByVal inRadius As Double, _
    ByVal chordDistance As Double, _
    ByVal IsMinor As Boolean _
)
[C#]
public void ConstructBearingRadiusChord (
    IPoint from,
    double inAngle,
    bool isCCW,
    double inRadius,
    double chordDistance,
    bool IsMinor
);
[C++]
HRESULT ConstructBearingRadiusChord(
  IPoint* from,
  double inAngle,
  VARIANT_BOOL isCCW,
  double inRadius,
  double chordDistance,
  VARIANT_BOOL IsMinor
);
[C++]
Parameters
from 

from is a parameter of type IPoint* inAngle
inAngle is a parameter of type double isCCW
isCCW is a parameter of type bool inRadius
inRadius is a parameter of type double chordDistance
chordDistance is a parameter of type double IsMinor
IsMinor is a parameter of type bool

Product Availability

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

Description

Constructs a CircularArc given the From Point, the Bearing Angle, the desired orientation, the desired Radius, the desired Chord Distance, and the IsMinor orientation.  The Bearing Angle is measured in radians.  The Chord Distance must be less than twice the Radius, otherwise an error is returned.

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Bearing Angle Example

[C#]
private void ConstructBearingRadiusChord()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;
  
  IPoint fromPoint = new PointClass();
  fromPoint.PutCoords(100, 100);
  
  //The angles should be in Radians (Radians = Degrees * PI/180)
  constructCircularArc.ConstructBearingRadiusChord(fromPoint, 0, true, 40, 40, true);
   
  String report = "Length : " + circularArc.Length + "\n" +
                  "Radius : " + circularArc.Radius + "\n" +
                  "Chord Height : " + circularArc.ChordHeight + "\n" +
                  "Central Angle (Rad) : " + circularArc.CentralAngle + "\n" +
                  "From Angle (Rad) : " + circularArc.FromAngle + "\n" +
                  "To Angle (Rad) : " + circularArc.ToAngle + "\n" +
                  "Center Point : " + circularArc.CenterPoint.X + " , " + circularArc.CenterPoint.Y + "\n" +
                  "From Point : " + circularArc.FromPoint.X + " , " + circularArc.FromPoint.Y + "\n" +
                  "To Point : " + circularArc.ToPoint.X + " , " + circularArc.ToPoint.Y;
  System.Windows.Forms.MessageBox.Show(report);
}
[Visual Basic .NET]

    Private Sub ConstructBearingRadiusChord()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint

        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        Pi = 4 * Math.Atan(1) 'Calculate the value of pi.
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pFromPoint.PutCoords(100, 100)
        'The angles should be in Radians (Radians = Degrees * PI/180)
        pConstructCircularArc.ConstructBearingRadiusChord(pFromPoint, 0, True, 40, 40, True)

        Debug.Print("Length : " & pCArc.Length)
        Debug.Print("Radius : " & pCArc.Radius)
        Debug.Print("Chord Height : " & pCArc.ChordHeight)
        Debug.Print("Central Angle (Rad) : " & pCArc.CentralAngle)
        Debug.Print("From Angle (Rad) : " & pCArc.FromAngle)
        Debug.Print("To Angle (Rad) : " & pCArc.ToAngle)
        Debug.Print("Center Point : " & pCArc.CenterPoint.X & " , " & pCArc.CenterPoint.Y)
        Debug.Print("From Point : " & pCArc.FromPoint.X & " , " & pCArc.FromPoint.Y)
        Debug.Print("To Point : " & pCArc.ToPoint.X & " , " & pCArc.ToPoint.Y)
    End Sub

See Also

IConstructCircularArc Interface | IConstructCircularArc.ConstructBearingAngleTangent Method | IConstructCircularArc.ConstructBearingRadiusChord Method | IConstructCircularArc.ConstructBearingArcTangent Method | IConstructCircularArc.ConstructBearingChordTangent Method | IConstructCircularArc.ConstructBearingChordArc Method | IConstructCircularArc.ConstructBearingRadiusAngle Method | IConstructCircularArc.ConstructBearingRadiusArc Method | IConstructCircularArc.ConstructBearingRadiusTangent Method | IConstructCircularArc.ConstructBearingAngleChord Method | IConstructCircularArc.ConstructBearingAngleArc Method | IConstructAngle.ConstructThreePoint Method | IConstructAngle.ConstructLine Method