Interface IConstructCircularArc

Namespace
ESRI.ArcGIS.Geometry
Assembly
ESRI.Server.Geometry.dll

Provides access to members that construct a circular arc using other geometries and values.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("91B6F492-C70A-11D0-8307-0000F8034032")]
public interface IConstructCircularArc

Remarks

 

ConstructCircularArc CircularArc Example

ConstructCircularArc Example1

ConstructCircularArc Example2

Methods

ConstructArcDistance(IPoint, IPoint, bool, double)

Constructs an arc from a center point, a starting point, and an arc length.

void ConstructArcDistance(IPoint Center, IPoint from, bool isCCW, double arcDistance)

Parameters

Center IPoint
from IPoint
isCCW bool
arcDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc CircularArc Example

[C#]

        private void ConstructArcDistance()
        {
          IConstructCircularArc constructCircularArc = new CircularArcClass();
          ICircularArc circularArc = constructCircularArc as ICircularArc;
          IPoint fromPoint = new PointClass();
          IPoint toPoint = new PointClass();
          fromPoint.PutCoords(100, 100);
          toPoint.PutCoords(50, 50); 
          constructCircularArc.ConstructArcDistance(fromPoint, toPoint, true, 150); 
          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 ConstructArcDistance()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim pCenterPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pStartPoint As ESRI.ArcGIS.Geometry.IPoint
        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        pCenterPoint = New ESRI.ArcGIS.Geometry.Point
        pStartPoint = New ESRI.ArcGIS.Geometry.Point
        pCenterPoint.PutCoords(100, 100)
        pStartPoint.PutCoords(50, 50)









        pConstructCircularArc.ConstructArcDistance(pCenterPoint, pStartPoint, True, 150)

        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









ConstructBearingAngleArc(IPoint, double, bool, double, double)

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

void ConstructBearingAngleArc(IPoint from, double inAngle, bool isCCW, double CentralAngle, double arcDistance)

Parameters

from IPoint
inAngle double
isCCW bool
CentralAngle double
arcDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Bearing Angle Example

[C#]
private void ConstructBearingAngleArc()
{
  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.ConstructBearingAngleArc(fromPoint, 0, true, (90 * (Math.PI / 180)), 150);

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 ConstructBearingAngleArc()
  Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
  Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
  Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
  Dim Pi As Double
  
  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.ConstructBearingAngleArc(pFromPoint, 0, True, (90 * (Pi / 180)), 150)
 
  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























ConstructBearingAngleChord(IPoint, double, bool, double, double)

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

void ConstructBearingAngleChord(IPoint from, double inAngle, bool isCCW, double CentralAngle, double chordDistance)

Parameters

from IPoint
inAngle double
isCCW bool
CentralAngle double
chordDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Bearing Angle Example

[C#]
private void ConstructBearingAngleChord()
{
  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.ConstructBearingAngleChord(fromPoint, 0, true, (90 * (Math.PI / 180)), 150);

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 ConstructBearingAngleChord()
  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.ConstructBearingAngleChord(pFromPoint, 0, True, (90 * (Pi / 180)), 100)
 
  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






















ConstructBearingAngleTangent(IPoint, double, bool, double, double)

Constructs an arc with the given chord bearing, central angle and tangent distance.

void ConstructBearingAngleTangent(IPoint from, double inAngle, bool isCCW, double CentralAngle, double tangentDistance)

Parameters

from IPoint
inAngle double
isCCW bool
CentralAngle double
tangentDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Bearing Angle Example

[C#]
private void ConstructBearingAngleTangent()
{
  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.ConstructBearingAngleTangent(fromPoint, 0, true, (90 * (Math.PI / 180)), 300);

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 ConstructBearingAngleTangent()
  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.ConstructBearingAngleTangent(pFromPoint, 0, True, (90 * Pi) / 180, 300)
  
  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






















ConstructBearingArcTangent(IPoint, double, bool, double, double)

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

void ConstructBearingArcTangent(IPoint from, double inAngle, bool isCCW, double arcDistance, double tangentDistance)

Parameters

from IPoint
inAngle double
isCCW bool
arcDistance double
tangentDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Bearing Angle Example

[C#]
private void ConstructBearingArcTangent()
{
  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.ConstructBearingArcTangent(fromPoint, 0, true, 100, 300);

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 ConstructBearingArcTangent()
  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.ConstructBearingArcTangent(pFromPoint, 0, True, 100, 300)
  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




















ConstructBearingChordArc(IPoint, double, bool, double, double)

Constructs an arc with the given chord bearing, chord distance and arc distance (negative for clockwise orientation).

void ConstructBearingChordArc(IPoint from, double inAngle, bool isCCW, double chordDistance, double arcDistance)

Parameters

from IPoint
inAngle double
isCCW bool
chordDistance double
arcDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Bearing Angle Example

[C#]
private void ConstructBearingChordArc()
{
  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.ConstructBearingChordArc(fromPoint, 0, true, 100, 300);

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 ConstructBearingChordArc()
  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.ConstructBearingChordArc(pFromPoint, 0, True, 100, 300)
  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






















ConstructBearingChordTangent(IPoint, double, bool, double, double)

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

void ConstructBearingChordTangent(IPoint from, double inAngle, bool isCCW, double chordDistance, double tangentDistance)

Parameters

from IPoint
inAngle double
isCCW bool
chordDistance double
tangentDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Bearing Angle Example

[C#]
private void ConstructBearingChordTangent()
{
  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.ConstructBearingChordTangent(fromPoint, 0, true, 100, 300);

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 ConstructBearingChordTangent()
        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.ConstructBearingChordTangent(pFromPoint, 0, True, 100, 300)





        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









ConstructBearingRadiusAngle(IPoint, double, bool, double, double)

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

void ConstructBearingRadiusAngle(IPoint startPoint, double inAngle, bool isCCW, double inRadius, double CentralAngle)

Parameters

startPoint IPoint
inAngle double
isCCW bool
inRadius double
CentralAngle double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Bearing Angle Example

[C#]
private void ConstructBearingRadiusAngle()
{
  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.ConstructBearingRadiusAngle(fromPoint, 0, true, 40, Math.PI);

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 ConstructBearingRadiusAngle()
        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.ConstructBearingRadiusAngle(pFromPoint, 0, True, 40, Pi)





        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









ConstructBearingRadiusArc(IPoint, double, bool, double, double)

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

void ConstructBearingRadiusArc(IPoint from, double inAngle, bool isCCW, double inRadius, double arcDistance)

Parameters

from IPoint
inAngle double
isCCW bool
inRadius double
arcDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Bearing Angle Example

[C#]
private void ConstructBearingRadiusArc()
{
  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.ConstructBearingRadiusArc(fromPoint, 0, true, 40, 40);

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 ConstructBearingRadiusArc()
        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.ConstructBearingRadiusArc(pFromPoint, 0, True, 40, 40)
        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





















ConstructBearingRadiusChord(IPoint, double, bool, double, double, bool)

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

void ConstructBearingRadiusChord(IPoint from, double inAngle, bool isCCW, double inRadius, double chordDistance, bool IsMinor)

Parameters

from IPoint
inAngle double
isCCW bool
inRadius double
chordDistance double
IsMinor bool

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









ConstructBearingRadiusTangent(IPoint, double, bool, double, double)

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

void ConstructBearingRadiusTangent(IPoint from, double inAngle, bool isCCW, double inRadius, double tangentDistance)

Parameters

from IPoint
inAngle double
isCCW bool
inRadius double
tangentDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Bearing Angle Example

[C#]

        private void ConstructBearingRadiusTangent()
        {
            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.ConstructBearingRadiusTangent(fromPoint, 0, true, 40, 1000);

            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 ConstructBearingRadiusTangent()
        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.ConstructBearingRadiusTangent(pFromPoint, 0, True, 40, 1000)





        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









ConstructChordDistance(IPoint, IPoint, bool, double)

Constructs an arc from a center point, a starting point, and a chord length.

void ConstructChordDistance(IPoint Center, IPoint from, bool isCCW, double chordDistance)

Parameters

Center IPoint
from IPoint
isCCW bool
chordDistance double

Remarks

-isCCW stands for "is counter clockwise"

Note : To construct a major CircularArc using the same paramaters use the IConstructCircularcArc2::ConstructChordDistanceEx method with the IsMinor parameter equal to false.

ConstructCircularArc ChordDistance Example

[C#]

        private void ConstructChordDistance()
        {
            IConstructCircularArc constructCircularArc = new CircularArcClass();
            ICircularArc circularArc = constructCircularArc as ICircularArc;
            IPoint fromPoint = new PointClass();
            IPoint toPoint = new PointClass();
            fromPoint.PutCoords(100, 100);
            toPoint.PutCoords(50, 50); constructCircularArc.ConstructChordDistance(fromPoint, toPoint, true, 100); 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 ConstructChordDistance()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim pCenterPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint



        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pCenterPoint = New ESRI.ArcGIS.Geometry.Point
        pFromPoint.PutCoords(100, 100)
        pCenterPoint.PutCoords(50, 50)
        pConstructCircularArc.ConstructChordDistance(pCenterPoint, pFromPoint, True, 100)





        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









ConstructCircle(IPoint, double, bool)

Constructs a circle of a given radius and orientation.

void ConstructCircle(IPoint CenterPoint, double Radius, bool isCCW)

Parameters

CenterPoint IPoint
Radius double
isCCW bool

Remarks

-isCCW stands for "is counter clockwise"

CircularArc ConstructCircle Example

[C#]
public ICircularArc CreateCircleArc(IPoint point, double radius, bool isCCW)
{

ICircularArc circularArc = new CircularArcClass(); IConstructCircularArc construtionCircularArc = circularArc as IConstructCircularArc; construtionCircularArc.ConstructCircle(point, radius, isCCW); return circularArc; }

[Visual Basic .NET]

    Public Function CreateCArcFull(ByVal pCPoint As ESRI.ArcGIS.Geometry.IPoint, ByVal Radius As Double, _
    ByVal IsCCW As Boolean) As ESRI.ArcGIS.Geometry.ICircularArc
        Dim pConstCArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        pConstCArc = New ESRI.ArcGIS.Geometry.CircularArc
        pConstCArc.ConstructCircle(pCPoint, Radius, IsCCW)
        CreateCArcFull = pConstCArc
    End Function






ConstructEndPointsAngle(IPoint, IPoint, bool, double)

Constructs an arc from the given endpoints and central angle.

void ConstructEndPointsAngle(IPoint from, IPoint to, bool isCCW, double CentralAngle)

Parameters

from IPoint
to IPoint
isCCW bool
CentralAngle double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc EndPoint Example

[C#]

        private void ConstructEndPointsAngel()
        {
            IConstructCircularArc constructCircularArc = new CircularArcClass();
            ICircularArc circularArc = constructCircularArc as ICircularArc;
            IPoint fromPoint = new PointClass();
            IPoint toPoint = new PointClass();
            fromPoint.PutCoords(100, 100);
            toPoint.PutCoords(50, 50);






            constructCircularArc.ConstructEndPointsAngle(fromPoint, toPoint, true, 90);
            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 ConstructEndPointsAngle()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        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
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(50, 50)
        'The angles should be in Radians (Radians = Degrees * PI/180)
        pConstructCircularArc.ConstructEndPointsAngle(pFromPoint, pToPoint, True, 90 * Pi / 180)







        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









ConstructEndPointsArc(IPoint, IPoint, bool, double)

Constructs an arc from the given endpoints and arc distance.

void ConstructEndPointsArc(IPoint from, IPoint to, bool isCCW, double arcDistance)

Parameters

from IPoint
to IPoint
isCCW bool
arcDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc EndPoint Example

[C#]
private void ConstructEndPointsArc()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;
  IPoint fromPoint = new PointClass();
  IPoint toPoint = new PointClass();
  fromPoint.PutCoords(100, 100);
  toPoint.PutCoords(50, 50);
  
  constructCircularArc.ConstructEndPointsArc(fromPoint, toPoint, true, 200);
  
  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 ConstructEndPointsArc()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(50, 50)
        pConstructCircularArc.ConstructEndPointsArc(pFromPoint, pToPoint, True, 200)
        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





















ConstructEndPointsChordHeight(IPoint, IPoint, bool, double)

Constructs an arc with specified endpoints and and chord height.

void ConstructEndPointsChordHeight(IPoint from, IPoint to, bool isCCW, double ChordHeight)

Parameters

from IPoint
to IPoint
isCCW bool
ChordHeight double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc EndPoints Example

[C#]

private void ConstructEndPointsChordHeight()
{
    IConstructCircularArc constructCircularArc = new CircularArcClass();
    ICircularArc circularArc = constructCircularArc as ICircularArc;


    IPoint fromPoint1 = new PointClass();
    fromPoint1.PutCoords(100, 100);
    IPoint toPoint1 = new PointClass();
    toPoint1.PutCoords(50, 50);
    constructCircularArc.ConstructEndPointsChordHeight(fromPoint1, toPoint1, true, 100);



    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 ConstructEndPointsChordHeight()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint



        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(50, 50)
        pConstructCircularArc.ConstructEndPointsChordHeight(pFromPoint, pToPoint, True, 100)





        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








ConstructEndPointsRadius(IPoint, IPoint, bool, double, bool)

Constructs an arc from the given endpoints and radius.

void ConstructEndPointsRadius(IPoint from, IPoint to, bool isCCW, double inRadius, bool IsMinor)

Parameters

from IPoint
to IPoint
isCCW bool
inRadius double
IsMinor bool

Remarks

 

ConstructCircularArc EndPoint Example

[C#]

        private void ConstructEndPointsRadius()
        {
            IConstructCircularArc constructCircularArc = new CircularArcClass();
            ICircularArc circularArc = constructCircularArc as ICircularArc;
            IPoint fromPoint = new PointClass();
            IPoint toPoint = new PointClass();
            fromPoint.PutCoords(100, 100);
            toPoint.PutCoords(50, 50);






            constructCircularArc.ConstructEndPointsRadius(fromPoint, toPoint, true, 90, 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 ConstructEndPointsRadius()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint



        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(50, 50)
        pConstructCircularArc.ConstructEndPointsRadius(pFromPoint, pToPoint, True, 100, False)





        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








 

ConstructEndPointsTangent(IPoint, IPoint, bool, double)

Constructs an arc from the given endpoints and tangent distance.

void ConstructEndPointsTangent(IPoint from, IPoint to, bool isCCW, double tangentDistance)

Parameters

from IPoint
to IPoint
isCCW bool
tangentDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc EndPoints Example

ConstructCircularArc Tangent Distance Example

ConstructFilletPoint(ISegment, ISegment, IPoint, IPoint)

Constructs an arc of given start point near first segment and tangent to two segments. hintPoint can be nil or can be a location near the desired fillet.

void ConstructFilletPoint(ISegment s1, ISegment s2, IPoint from, IPoint hintPoint)

Parameters

s1 ISegment
s2 ISegment
from IPoint
hintPoint IPoint

Remarks

 

ConstructCircularArc Construct Fillet Point Example

[C#]
private void ConstructFilletPoint()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint1 = new PointClass(); fromPoint1.PutCoords(100, 100); IPoint toPoint1 = new PointClass(); toPoint1.PutCoords(50, 50); ILine line1 = new LineClass(); line1.PutCoords(fromPoint1, toPoint1); IPoint fromPoint2 = new PointClass(); fromPoint2.PutCoords(100, 100); IPoint toPoint2 = new PointClass(); toPoint2.PutCoords(150, 50); ILine line2 = new LineClass(); line2.PutCoords(fromPoint2, toPoint2); IPoint hintPoint = new PointClass(); hintPoint.PutCoords(100, 75); constructCircularArc.ConstructFilletPoint(line1 as ISegment, line2 as ISegment, line1.ToPoint, hintPoint);

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 ConstructFilletPoint()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine
        Dim pLine2 As ESRI.ArcGIS.Geometry.ILine
        Dim pHintPoint As ESRI.ArcGIS.Geometry.IPoint






        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pLine2 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(50, 50)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(150, 50)
        pLine2.PutCoords(pFromPoint, pToPoint)
        pHintPoint = New ESRI.ArcGIS.Geometry.Point
        pHintPoint.PutCoords(100, 75)












        pConstructCircularArc.ConstructFilletPoint(pLine1, pLine2, pLine1.ToPoint, pHintPoint)

        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









ConstructFilletRadius(ISegment, ISegment, double, IPoint)

Constructs an arc of given radius and tangent to two segments. hintPoint can be nil or can be a location near the desired fillet.

void ConstructFilletRadius(ISegment s1, ISegment s2, double inRadius, IPoint hintPoint)

Parameters

s1 ISegment
s2 ISegment
inRadius double
hintPoint IPoint

Remarks

 

ConstructCircularArc Construct Fillet Radius Example

[C#]
private void ConstructFilletRadius()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint1 = new PointClass(); fromPoint1.PutCoords(100, 100); IPoint toPoint1 = new PointClass(); toPoint1.PutCoords(50, 50); ILine line1 = new LineClass(); line1.PutCoords(fromPoint1, toPoint1); IPoint fromPoint2 = new PointClass(); fromPoint2.PutCoords(100, 100); IPoint toPoint2 = new PointClass(); toPoint2.PutCoords(150, 50); ILine line2 = new LineClass(); line2.PutCoords(fromPoint2, toPoint2); IPoint hintPoint = new PointClass(); hintPoint.PutCoords(100, 75); constructCircularArc.ConstructFilletRadius(line1 as ISegment, line2 as ISegment, 50, hintPoint);

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 ConstructFilletRadius()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine
        Dim pLine2 As ESRI.ArcGIS.Geometry.ILine
        Dim pHintPoint As ESRI.ArcGIS.Geometry.IPoint






        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pLine2 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(50, 50)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(150, 50)
        pLine2.PutCoords(pFromPoint, pToPoint)
        pHintPoint = New ESRI.ArcGIS.Geometry.Point
        pHintPoint.PutCoords(100, 75)












        pConstructCircularArc.ConstructFilletRadius(pLine1, pLine2, 50, pHintPoint)

        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









ConstructTangentAndPoint(ISegment, bool, IPoint)

Constructs an arc with one endpoint being p, tangent to s, and connected to s. If atFrom is true, the connection is at s's from point, otherwise at s's to point.

void ConstructTangentAndPoint(ISegment s, bool atFrom, IPoint p)

Parameters

s ISegment
atFrom bool
p IPoint

Remarks

 

ConstructCircularArc Tangent Segment Example

[C#]

        private void ConstructTangentAndPoint()
        {
            IConstructCircularArc constructCircularArc = new CircularArcClass();
            ICircularArc circularArc = constructCircularArc as ICircularArc;


            IPoint fromPoint1 = new PointClass();
            fromPoint1.PutCoords(100, 100);
            IPoint toPoint1 = new PointClass();
            toPoint1.PutCoords(50, 50);
            ILine line1 = new LineClass();
            line1.PutCoords(fromPoint1, toPoint1);




            IPoint point = new PointClass();
            point.PutCoords(100, 75);
            constructCircularArc.ConstructTangentAndPoint(line1 as ISegment, false, point);

            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 ConstructTangentAndPoint()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine
        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pPoint = New ESRI.ArcGIS.Geometry.Point
        pPoint.PutCoords(200, 400)
        pConstructCircularArc.ConstructTangentAndPoint(pLine1, False, pPoint)
        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


























ConstructTangentAngleArc(ISegment, bool, bool, double, double)

Constructs an arc with a common tangent to the input segment, a given central angle and an arc length.

void ConstructTangentAngleArc(ISegment Segment, bool atStart, bool isCCW, double CentralAngle, double arcDistance)

Parameters

Segment ISegment
atStart bool
isCCW bool
CentralAngle double
arcDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Tangent Segment Example

[C#]
private void ConstructTangentAngleArc()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint = new PointClass(); fromPoint.PutCoords(100, 100); IPoint toPoint = new PointClass(); toPoint.PutCoords(100, 400); ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); //The angles should be in Radians (Radians = Degrees * PI/180) constructCircularArc.ConstructTangentAngleArc(line as ISegment, false, true, Math.PI, 100);

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 ConstructTangentAngleArc()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine






        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        Pi = 4 * Math.Atan(1) 'Calculate the value of pi.
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pPoint = New ESRI.ArcGIS.Geometry.Point
        pPoint.PutCoords(200, 400)
        'The angles should be in Radians (Radians = Degrees * PI/180)
        pConstructCircularArc.ConstructTangentAngleArc(pLine1, False, True, Pi, 100)











        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








ConstructTangentAngleChord(ISegment, bool, bool, double, double)

Constructs an arc with a common tangent to the input segment, a given central angle and a chord length.

void ConstructTangentAngleChord(ISegment Segment, bool atStart, bool isCCW, double CentralAngle, double chordDistance)

Parameters

Segment ISegment
atStart bool
isCCW bool
CentralAngle double
chordDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Tangent Segment Example

ConstructCircularArc Chord Distance Example

[C#]
private void ConstructTangentAngleChord()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint = new PointClass(); fromPoint.PutCoords(100, 100); IPoint toPoint = new PointClass(); toPoint.PutCoords(100, 400); ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); //The angles should be in Radians (Radians = Degrees * PI/180) constructCircularArc.ConstructTangentAngleChord(line as ISegment, false, true, Math.PI, 100);

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 ConstructTangentAngleChord()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine






        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        Pi = 4 * Math.Atan(1) 'Calculate the value of pi.
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pPoint = New ESRI.ArcGIS.Geometry.Point
        pPoint.PutCoords(200, 400)
        'The angles should be in Radians (Radians = Degrees * PI/180)
        pConstructCircularArc.ConstructTangentAngleChord(pLine1, False, False, Pi, 100)











        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








ConstructTangentAngleTangent(ISegment, bool, bool, double, double)

Constructs an arc with a common tangent to the input segment, a given central angle and a tangent length.

void ConstructTangentAngleTangent(ISegment Segment, bool atStart, bool isCCW, double CentralAngle, double tangentDistance)

Parameters

Segment ISegment
atStart bool
isCCW bool
CentralAngle double
tangentDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Tangent Segment Example

ConstructCircularArc Tangent Distance Example

[C#]
private void ConstructTangentAngleTangent()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint = new PointClass(); fromPoint.PutCoords(100, 100); IPoint toPoint = new PointClass(); toPoint.PutCoords(100, 400); ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); //The angles should be in Radians (Radians = Degrees * PI/180) constructCircularArc.ConstructTangentAngleTangent(line as ISegment, false, true, Math.PI / 2, 100);

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 ConstructTangentAngleTangent()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine






        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        Pi = 4 * Math.Atan(1) 'Calculate the value of pi.
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pPoint = New ESRI.ArcGIS.Geometry.Point
        pPoint.PutCoords(200, 400)
        'The angles should be in Radians (Radians = Degrees * PI/180)
        pConstructCircularArc.ConstructTangentAngleTangent(pLine1, False, True, Pi / 2, 100)











        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








ConstructTangentArcTangent(ISegment, bool, bool, double, double)

Constructs an arc with a common tangent to the input segment, a given arc length and a tangent length.

void ConstructTangentArcTangent(ISegment Segment, bool atStart, bool isCCW, double arcDistance, double tangentDistance)

Parameters

Segment ISegment
atStart bool
isCCW bool
arcDistance double
tangentDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Tangent Segment Example

ConstructCircularArc Tangent Distance Example

[C#]
private void ConstructTangentArcTangent()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint = new PointClass(); fromPoint.PutCoords(100, 100); IPoint toPoint = new PointClass(); toPoint.PutCoords(100, 400); ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); //The angles should be in Radians (Radians = Degrees * PI/180) constructCircularArc.ConstructTangentArcTangent(line as ISegment, false, true, 157.08, 100);

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 ConstructTangentArcTangent()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine






        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        Pi = 4 * Math.Atan(1) 'Calculate the value of pi.
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pPoint = New ESRI.ArcGIS.Geometry.Point
        pPoint.PutCoords(200, 400)
        'The angles should be in Radians (Radians = Degrees * PI/180)
        pConstructCircularArc.ConstructTangentArcTangent(pLine1, False, True, 157.08, 100)











        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








ConstructTangentChordArc(ISegment, bool, bool, double, double)

Constructs an arc with a common tangent to the input segment, a given chord length and an arc length.

void ConstructTangentChordArc(ISegment Segment, bool atStart, bool isCCW, double chordDistance, double arcDistance)

Parameters

Segment ISegment
atStart bool
isCCW bool
chordDistance double
arcDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Tangent Segment Example

ConstructCircularArc ChordLength Example

[C#]
private void ConstructTangentChordArc()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint = new PointClass(); fromPoint.PutCoords(100, 100); IPoint toPoint = new PointClass(); toPoint.PutCoords(100, 400); ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); //The angles should be in Radians (Radians = Degrees * PI/180) constructCircularArc.ConstructTangentChordArc(line as ISegment, false, true, 100, 157.08);

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 ConstructTangentChordArc()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine






        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        Pi = 4 * Math.Atan(1) 'Calculate the value of pi.
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pPoint = New ESRI.ArcGIS.Geometry.Point
        pPoint.PutCoords(200, 400)
        'The angles should be in Radians (Radians = Degrees * PI/180)
        pConstructCircularArc.ConstructTangentChordArc(pLine1, False, True, 100, 157.08)
        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





















ConstructTangentChordTangent(ISegment, bool, bool, double, double)

Constructs an arc with a common tangent to input segment, a given chord length and a tangent length.

void ConstructTangentChordTangent(ISegment Segment, bool atStart, bool isCCW, double chordDistance, double tangentDistance)

Parameters

Segment ISegment
atStart bool
isCCW bool
chordDistance double
tangentDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Tangent Segment Example

ConstructCircularArc Chord and Tangent Distance Example

[C#]
private void ConstructTangentChordTangent()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint = new PointClass(); fromPoint.PutCoords(100, 100); IPoint toPoint = new PointClass(); toPoint.PutCoords(100, 400); ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); //The angles should be in Radians (Radians = Degrees * PI/180) constructCircularArc.ConstructTangentChordTangent(line as ISegment, false, true, 100, 100000000);

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 ConstructTangentChordTangent()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine






        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        Pi = 4 * Math.Atan(1) 'Calculate the value of pi.
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pPoint = New ESRI.ArcGIS.Geometry.Point
        pPoint.PutCoords(200, 400)
        'The angles should be in Radians (Radians = Degrees * PI/180)
        pConstructCircularArc.ConstructTangentChordTangent(pLine1, False, True, 100, 100000000)











        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









ConstructTangentDistance(IPoint, IPoint, bool, double)

Constructs an arc from a center point, a starting point, and an tangent length.

void ConstructTangentDistance(IPoint Center, IPoint from, bool isCCW, double tangentDistance)

Parameters

Center IPoint
from IPoint
isCCW bool
tangentDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc TangentDistance Example

[C#]
private void ConstructTangentDistance()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;
  IPoint fromPoint = new PointClass();
  IPoint toPoint = new PointClass();
  fromPoint.PutCoords(100, 100);
  toPoint.PutCoords(50, 50);
  constructCircularArc.ConstructTangentDistance(fromPoint, toPoint, true, 100000000);
  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 ConstructTangentDistance()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pCenterPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pStartPoint As ESRI.ArcGIS.Geometry.IPoint




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







        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









ConstructTangentRadiusAngle(ISegment, bool, bool, double, double)

Constructs an arc with a common tangent to the input segment, a given radius and a central angle.

void ConstructTangentRadiusAngle(ISegment Segment, bool atStart, bool isCCW, double inRadius, double CentralAngle)

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
CentralAngle double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Tangent Segment Example

[C#]
private void ConstructTangentRadiusAngle()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint = new PointClass(); fromPoint.PutCoords(100, 100); IPoint toPoint = new PointClass(); toPoint.PutCoords(100, 400); ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); //The angles should be in Radians (Radians = Degrees * PI/180) constructCircularArc.ConstructTangentRadiusAngle(line as ISegment, false, true, 50, Math.PI);

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 ConstructTangentRadiusAngle()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine





        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        Pi = 4 * Math.Atan(1) 'Calculate the value of pi.
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        'The angles should be in Radians (Radians = Degrees * PI/180)
        pConstructCircularArc.ConstructTangentRadiusAngle(pLine1, False, True, 50, Pi)









        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








ConstructTangentRadiusArc(ISegment, bool, bool, double, double)

Constructs an arc having a common tangent to the input segment, a given radius and an arc length.

void ConstructTangentRadiusArc(ISegment Segment, bool atStart, bool isCCW, double inRadius, double arcDistance)

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
arcDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Tangent Segment Example

[C#]
private void ConstructTangentRadiusArc()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint = new PointClass(); IPoint toPoint = new PointClass(); fromPoint.PutCoords(100, 100); toPoint.PutCoords(50, 50);

ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); constructCircularArc.ConstructTangentRadiusArc(line as ISegment, false, true, 50, 157.08);

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 ConstructTangentRadiusArc()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine
        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        Pi = 4 * Math.Atan(1) 'Calculate the value of pi.
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        'The angles should be in Radians (Radians = Degrees * PI/180)
        pConstructCircularArc.ConstructTangentRadiusArc(pLine1, False, True, 50, 157.08)
        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



























ConstructTangentRadiusChord(ISegment, bool, bool, double, double)

Constructs an arc with a common tangent to the input segment, a given radius and a chord length.

void ConstructTangentRadiusChord(ISegment Segment, bool atStart, bool isCCW, double inRadius, double chordDistance)

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
chordDistance double

Remarks

-isCCW stands for "is counter clockwise"

Note : To construct a major CircularArc using the same paramaters use the IConstructCircularcArc2::ConstructTangentRadiusChordEx method with the IsMinor parameter equal to false.

ConstructCircularArc Tangent Segment Example

ConstructCircularArc Chord Distance Example

[C#]
private void onstructTangentRadiusChord()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint = new PointClass(); IPoint toPoint = new PointClass(); fromPoint.PutCoords(100, 100); toPoint.PutCoords(50, 400);

ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); constructCircularArc.ConstructTangentRadiusChord(line as ISegment, false, true, 50, 100);

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 ConstructTangentRadiusChord()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim Pi As Double
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine





        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        Pi = 4 * Math.Atan(1) 'Calculate the value of pi.
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pConstructCircularArc.ConstructTangentRadiusChord(pLine1, False, True, 50, 100)








        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









ConstructTangentRadiusTangent(ISegment, bool, bool, double, double)

Constructs an arc with a common tangent to the input segment, a given radius and a tangent length.

void ConstructTangentRadiusTangent(ISegment Segment, bool atStart, bool isCCW, double inRadius, double tangentDistance)

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
tangentDistance double

Remarks

-isCCW stands for "is counter clockwise"

ConstructCircularArc Tangent Segment Example

ConstructCircularArc Tangent Distance Example

[C#]
private void ConstructTangentRadiusTangent()
{
  IConstructCircularArc constructCircularArc = new CircularArcClass();
  ICircularArc circularArc = constructCircularArc as ICircularArc;

IPoint fromPoint = new PointClass(); IPoint toPoint = new PointClass(); fromPoint.PutCoords(100, 100); toPoint.PutCoords(50, 400);

ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); constructCircularArc.ConstructTangentRadiusTangent(line as ISegment, false, true, 50, 50);

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 ConstructTangentRadiusTangent()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        Dim pCArc As ESRI.ArcGIS.Geometry.ICircularArc
        Dim pToPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pFromPoint As ESRI.ArcGIS.Geometry.IPoint
        Dim pLine1 As ESRI.ArcGIS.Geometry.ILine




        pConstructCircularArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc = pConstructCircularArc
        pFromPoint = New ESRI.ArcGIS.Geometry.Point
        pToPoint = New ESRI.ArcGIS.Geometry.Point
        pLine1 = New ESRI.ArcGIS.Geometry.Line
        pFromPoint.PutCoords(100, 100)
        pToPoint.PutCoords(100, 400)
        pLine1.PutCoords(pFromPoint, pToPoint)
        pConstructCircularArc.ConstructTangentRadiusTangent(pLine1, False, True, 50, 50)
        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


















ConstructThreePoints(IPoint, IPoint, IPoint, bool)

Constructs an arc from three points. useExistingCenter can be set to true in order to help create a reasonable arc when from and to are identical.

void ConstructThreePoints(IPoint from, IPoint middle, IPoint to, bool useExistingCenter)

Parameters

from IPoint
middle IPoint
to IPoint
useExistingCenter bool

Remarks

ConstructThreePoints is excellent for creating a CircularArc with exact endpoint coordinates.

 

The from and to points may be identical, in which case the third point, if it is distinct, will be on the circle and diametrically opposed to the from/to point (orientation will be clockwise).

 

CircularArc ConstructThreePoints Example

[C#]
public  ICircularArc CreateCArcThreePoint(IPoint fromPoint, IPoint thruPoint,IPoint toPoint)
{ 
   ICircularArc circularArcThreePoint = new CircularArcClass();
   IConstructCircularArc construtionCircularArc = circularArcThreePoint as IConstructCircularArc;
   construtionCircularArc.ConstructThreePoints(fromPoint, thruPoint, toPoint, true);
   return circularArcThreePoint;
}
[Visual Basic .NET]

Public Function CreateCArcThreePoint(ByVal FromPoint As ESRI.ArcGIS.Geometry.IPoint, ByVal ThruPoint As ESRI.ArcGIS.Geometry.IPoint, ByVal ToPoint As ESRI.ArcGIS.Geometry.IPoint) As ESRI.ArcGIS.Geometry.ICircularArc
   Dim ConstCArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
   CreateCArcThreePoint = New ESRI.ArcGIS.Geometry.CircularArc
   ConstCArc = CreateCArcThreePoint
   ConstCArc.ConstructThreePoints(FromPoint, ThruPoint, ToPoint, True)
End Function




QueryFilletRadiusRange(ISegment, ISegment, IPoint, out double, out double)

Returns minimum and maximum radius for fillet to touch both input segments. hintPoint can be nil or can be a location near the desired fillet.

void QueryFilletRadiusRange(ISegment s1, ISegment s2, IPoint hintPoint, out double minRadius, out double maxRadius)

Parameters

s1 ISegment
s2 ISegment
hintPoint IPoint
minRadius double
maxRadius double

Remarks

 

ConstructCircularArc Query Fillet Radius Range Example

[C#]

    private void QueryFilletRadiusRange()
    {
        IConstructCircularArc constructCircularArc = new CircularArcClass();
        ICircularArc circularArc = constructCircularArc as ICircularArc;


        IPoint fromPoint1 = new PointClass();
        fromPoint1.PutCoords(100, 100);
        IPoint toPoint1 = new PointClass();
        toPoint1.PutCoords(50, 50);
        ILine line1 = new LineClass();
        line1.PutCoords(fromPoint1, toPoint1);
        IPoint fromPoint2 = new PointClass();
        fromPoint2.PutCoords(100, 100);
        IPoint toPoint2 = new PointClass();
        toPoint2.PutCoords(150, 50);
        ILine line2 = new LineClass();
        line2.PutCoords(fromPoint2, toPoint2);
        IPoint hintPoint = new PointClass();
        hintPoint.PutCoords(100, 75);












        //Discover min and max fillet radius
        double minRadius;
        double maxRadius;
        constructCircularArc.QueryFilletRadiusRange(line1 as ISegment, line2 as ISegment, hintPoint, out minRadius, out maxRadius);
        //Create a circular arc with the maxRadius
        constructCircularArc.ConstructFilletRadius(line1 as ISegment, line2 as ISegment, maxRadius, hintPoint);





        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);
    }