Class CircularArcClass

Namespace
ESRI.ArcGIS.Geometry
Assembly
ESRI.Server.Geometry.dll
[ClassInterface(ClassInterfaceType.None)]
[Guid("CD3A614E-BC4B-11D0-8303-0000F8034032")]
public class CircularArcClass : CircularArc, ICircularArc, ITransform2D, ICurve3, ICurve2, ISegment, ICurve, IGeometry, IConstructCircularArc3, IConstructCircularArc2, IConstructCircularArc, IProximityOperator, ISupportErrorInfo, IClone, ISegmentM, ISegmentZ, ISegmentID
Inheritance
CircularArcClass
Implements
Inherited Members

Constructors

CircularArcClass()

public CircularArcClass()

Explicit Interface Implementations

Assign(IClone)

Assigns the properties of src to the receiver.

virtual void Assign(IClone src)

Parameters

src IClone

CenterPoint

The center point.

virtual IPoint CenterPoint { get; }

Returns

IPoint

Remarks

 

CircularArc CenterPoint Example

CentralAngle

The included (or central) angle.

virtual double CentralAngle { get; set; }

Returns

double

Remarks

 

CircularArc CentralAngle Example

[C#]

 

ChordHeight

The chord height (assigning preserves endpoints, and orientation unless chord height is < 0).

virtual double ChordHeight { get; set; }

Returns

double

Remarks

 

CircularArc ChordHeight Example

Clone()

Clones the receiver and assigns the result to *clone.

virtual IClone Clone()

Returns

IClone

Complement()

Changes this arc into its complement; 'from' and 'to' points are unchanged.

virtual void Complement()

Remarks

 

Complement Example

[C#]

        //This example shows how to create a Complement of Circular arc.
        static void ComplementArcs()
        {
            //Create three points to draw an arc through.
            IPoint point1 = new ESRI.ArcGIS.Geometry.Point();
            IPoint point2 = new ESRI.ArcGIS.Geometry.Point();
            IPoint point3 = new ESRI.ArcGIS.Geometry.Point();
            point1.PutCoords(200, 200);
            point2.PutCoords(200, 300);
            point3.PutCoords(300, 300);
            //Construct a Three Point Arc and draw as solid line.
            IConstructCircularArc constructionArc = new CircularArc() as IConstructCircularArc;
            constructionArc.ConstructThreePoints(point1, point2, point3, true);











            //Draw the compliment of the previous arc as dashed line.
            ICircularArc evilCircularArc = constructionArc as ICircularArc;
            evilCircularArc.Complement();

        }

[Visual Basic .NET]

    Public Sub ComplementArcs()
        'Create three points to draw an arc through.
        Dim pPoint1 As ESRI.ArcGIS.Geometry.IPoint, pPoint2 As ESRI.ArcGIS.Geometry.IPoint, pPoint3 As ESRI.ArcGIS.Geometry.IPoint

        pPoint1 = eCreatePoint(200, 200)
        pPoint2 = eCreatePoint(200, 300)
        pPoint3 = eCreatePoint(300, 300)

        'Construct a Three Point Arc and draw as solid line.
        Dim pCArc As ESRI.ArcGIS.Geometry.IConstructCircularArc
        pCArc = New ESRI.ArcGIS.Geometry.CircularArc
        pCArc.ConstructThreePoints(pPoint1, pPoint2, pPoint3, True)


        'Create the compliment of the previous arc as dashed line.
        Dim pCArcCmp As ESRI.ArcGIS.Geometry.ICircularArc
        pCArcCmp = pCArc
        pCArcCmp.Complement()


    End Sub


    Public Function eCreatePoint(ByVal X As Double, ByVal Y As Double) As ESRI.ArcGIS.Geometry.IPoint
        eCreatePoint = New ESRI.ArcGIS.Geometry.PointClass()
        eCreatePoint.PutCoords(X, Y)
    End Function



 

ConstructArcDistance(IPoint, IPoint, bool, double)

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

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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).

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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









ConstructChordDistanceEx(IPoint, IPoint, bool, double, bool)

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

virtual void ConstructChordDistanceEx(IPoint Center, IPoint from, bool isCCW, double chordDistance, bool IsMinor)

Parameters

Center IPoint
from IPoint
isCCW bool
chordDistance double
IsMinor bool

Remarks

Please see the ConstructChordDistance method for more details.

-isCCW stands for "is counter clockwise"

-If IsMinor is true the central angle of the output Arc will be smaller or equal than PI (Approx. 3.14 Rad)

[C#]

        private void ConstructChordDistanceEx()
        {
            IConstructCircularArc2 constructCircularArc = new CircularArcClass();
            ICircularArc circularArc = constructCircularArc as ICircularArc;


            IPoint fromPoint = new PointClass();
            fromPoint.PutCoords(100, 100);
            IPoint toPoint = new PointClass();
            toPoint.PutCoords(50, 50);
            constructCircularArc.ConstructChordDistanceEx(fromPoint, toPoint, true, 100, 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 ConstructChordDistanceEx()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc2
        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.ConstructChordDistanceEx(pCenterPoint, pFromPoint, True, 100, 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









ConstructCircle(IPoint, double, bool)

Constructs a circle of a given radius and orientation.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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









ConstructFilletPoint2(ISegment, ISegment, IPoint, IPoint)

Constructs a fillet from two segments and a point on the fillet.

virtual void ConstructFilletPoint2(ISegment pS1, ISegment pS2, IPoint pOn, IPoint pHintPoint)

Parameters

pS1 ISegment
pS2 ISegment
pOn IPoint
pHintPoint IPoint

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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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.

virtual 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









ConstructTangentRadiusChordEx(ISegment, bool, bool, double, double, bool)

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

virtual void ConstructTangentRadiusChordEx(ISegment Segment, bool atStart, bool isCCW, double inRadius, double chordDistance, bool IsMinor)

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
chordDistance double
IsMinor bool

Remarks

Please see the ConstructTangentRadiusChord method for more details.

-isCCW stands for "is counter clockwise"

-If IsMinor is true the central angle of the output Arc will be smaller or equal than PI (Approx. 3.14 Rad)

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

IPoint fromPoint = new PointClass(); fromPoint.PutCoords(100, 100); IPoint toPoint = new PointClass(); toPoint.PutCoords(50, 50); ILine line = new LineClass(); line.PutCoords(fromPoint, toPoint); constructCircularArc.ConstructTangentRadiusChordEx(line as ISegment, true, true, 100, 50, 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 ConstructTangentRadiusChordEx()
        Dim pConstructCircularArc As ESRI.ArcGIS.Geometry.IConstructCircularArc2
        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.ConstructTangentRadiusChordEx(pLine1, False, True, 50, 100, 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
























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

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

virtual 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.

virtual 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




ConvertDistanceMeasureToRatio(double, ref double)

Converts the distance measure to a ratio of the total distance.

virtual void ConvertDistanceMeasureToRatio(double distanceMeasure, ref double distanceRatio)

Parameters

distanceMeasure double
distanceRatio double

Densify(int, double, out int, out ILine)

Densify segment into the specified number of smaller segments. This method is intended for internal use only.

virtual void Densify(int cInSlots, double maxDeviation, out int pcOutSegments, out ILine segments)

Parameters

cInSlots int
maxDeviation double
pcOutSegments int
segments ILine

Remarks

Densifying individual segments can be accomplished in client code by add the segment to a temporary polyline, then densifying the polyline using one of the methods on IPolycurve. Alternatively, the IGeometryBridge interface on the GeometryEnvironment object can be used.

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

Dimension

virtual esriGeometryDimension Dimension { get; }

Returns

esriGeometryDimension

Envelope

virtual IEnvelope Envelope { get; }

Returns

IEnvelope

EnvelopeIntersection(IEnvelope, bool, ref double, ref double, ref int, out int)

Finds intersections with clipping envelope; boundaryOverlap is ignored for non-linear segments.

virtual void EnvelopeIntersection(IEnvelope intersectionEnvelope, bool boundaryOverlap, ref double segmentParams, ref double envelopeDistances, ref int numIntersections, out int outcode)

Parameters

intersectionEnvelope IEnvelope
boundaryOverlap bool
segmentParams double
envelopeDistances double
numIntersections int
outcode int

FromAngle

The angle, measured from a horizontal line through this circular arc's center point, that defines where this arc starts.

virtual double FromAngle { get; set; }

Returns

double

Remarks

 

CircularArc FromAngle Example

FromPoint

virtual IPoint FromPoint { get; set; }

Returns

IPoint

GeoNormalize()

virtual void GeoNormalize()

GeoNormalizeFromLongitude(double)

virtual void GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

GeographicShift(double)

Shift longitudes to the right of splitLongitude. This method is obsolete.

virtual void GeographicShift(double splitLongitude)

Parameters

splitLongitude double

GeometryType

virtual esriGeometryType GeometryType { get; }

Returns

esriGeometryType

GetDistanceAtVertexAttribute(esriGeometryAttributes, double, bool)

Gets the distance corresponding to the attribute value along the segment.

virtual double GetDistanceAtVertexAttribute(esriGeometryAttributes attributeType, double attributeValue, bool asRatio)

Parameters

attributeType esriGeometryAttributes
attributeValue double
asRatio bool

Returns

double

GetIDs(out int, out int)

Get the IDs on the segment's endpoints.

virtual void GetIDs(out int fromID, out int toID)

Parameters

fromID int
toID int

GetMs(out double, out double)

Get the Ms on the segment's endpoints.

virtual void GetMs(out double fromM, out double toM)

Parameters

fromM double
toM double

GetPointsAtVertexAttribute(esriGeometryAttributes, double, double, out IPointCollection)

Gets the point at the location corresponding to the attribute value.

virtual void GetPointsAtVertexAttribute(esriGeometryAttributes attributeType, double attributeValue, double lateralOffset, out IPointCollection outPoints)

Parameters

attributeType esriGeometryAttributes
attributeValue double
lateralOffset double
outPoints IPointCollection

GetSubSegmentBetweenVertexAttributes(esriGeometryAttributes, double, double, out ISegment)

Gets the segment corresponding to the extent along the segment between the 'from' and 'to' attribute values.

virtual void GetSubSegmentBetweenVertexAttributes(esriGeometryAttributes attributeType, double fromAttribute, double toAttribute, out ISegment outSegment)

Parameters

attributeType esriGeometryAttributes
fromAttribute double
toAttribute double
outSegment ISegment

GetSubcurve(double, double, bool, out ICurve)

virtual void GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

GetVertexAttributeAtDistance(esriGeometryAttributes, double, bool)

Gets the attribute value corresponding to the distance along the segment.

virtual double GetVertexAttributeAtDistance(esriGeometryAttributes attributeType, double distance, bool asRatio)

Parameters

attributeType esriGeometryAttributes
distance double
asRatio bool

Returns

double

GetZs(out double, out double)

Get the Zs on the segment's endpoints.

virtual void GetZs(out double fromZ, out double toZ)

Parameters

fromZ double
toZ double

HasVertexAttributes(esriGeometryAttributes, out bool, out bool)

Returns two booleans telling if the segment as from attribute and to attribute values.

virtual void HasVertexAttributes(esriGeometryAttributes attributeType, out bool hasFromAttribute, out bool hasToAttribute)

Parameters

attributeType esriGeometryAttributes
hasFromAttribute bool
hasToAttribute bool

HorizontalIntersectionCount(ref WKSPoint, out bool)

Returns the number of horizontal intersections.

virtual int HorizontalIntersectionCount(ref WKSPoint p, out bool pointOnLine)

Parameters

p WKSPoint
pointOnLine bool

Returns

int

IConstructCircularArc2_ConstructArcDistance(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc2_ConstructArcDistance(IPoint Center, IPoint from, bool isCCW, double arcDistance)

Parameters

Center IPoint
from IPoint
isCCW bool
arcDistance double

IConstructCircularArc2_ConstructBearingAngleArc(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
CentralAngle double
arcDistance double

IConstructCircularArc2_ConstructBearingAngleChord(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
CentralAngle double
chordDistance double

IConstructCircularArc2_ConstructBearingAngleTangent(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
CentralAngle double
tangentDistance double

IConstructCircularArc2_ConstructBearingArcTangent(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
arcDistance double
tangentDistance double

IConstructCircularArc2_ConstructBearingChordArc(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
chordDistance double
arcDistance double

IConstructCircularArc2_ConstructBearingChordTangent(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
chordDistance double
tangentDistance double

IConstructCircularArc2_ConstructBearingRadiusAngle(IPoint, double, bool, double, double)

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

Parameters

startPoint IPoint
inAngle double
isCCW bool
inRadius double
CentralAngle double

IConstructCircularArc2_ConstructBearingRadiusArc(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
inRadius double
arcDistance double

IConstructCircularArc2_ConstructBearingRadiusChord(IPoint, double, bool, double, double, bool)

virtual void IConstructCircularArc2_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

IConstructCircularArc2_ConstructBearingRadiusTangent(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
inRadius double
tangentDistance double

IConstructCircularArc2_ConstructChordDistance(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc2_ConstructChordDistance(IPoint Center, IPoint from, bool isCCW, double chordDistance)

Parameters

Center IPoint
from IPoint
isCCW bool
chordDistance double

IConstructCircularArc2_ConstructCircle(IPoint, double, bool)

virtual void IConstructCircularArc2_ConstructCircle(IPoint CenterPoint, double Radius, bool isCCW)

Parameters

CenterPoint IPoint
Radius double
isCCW bool

IConstructCircularArc2_ConstructEndPointsAngle(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc2_ConstructEndPointsAngle(IPoint from, IPoint to, bool isCCW, double CentralAngle)

Parameters

from IPoint
to IPoint
isCCW bool
CentralAngle double

IConstructCircularArc2_ConstructEndPointsArc(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc2_ConstructEndPointsArc(IPoint from, IPoint to, bool isCCW, double arcDistance)

Parameters

from IPoint
to IPoint
isCCW bool
arcDistance double

IConstructCircularArc2_ConstructEndPointsChordHeight(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc2_ConstructEndPointsChordHeight(IPoint from, IPoint to, bool isCCW, double ChordHeight)

Parameters

from IPoint
to IPoint
isCCW bool
ChordHeight double

IConstructCircularArc2_ConstructEndPointsRadius(IPoint, IPoint, bool, double, bool)

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

Parameters

from IPoint
to IPoint
isCCW bool
inRadius double
IsMinor bool

IConstructCircularArc2_ConstructEndPointsTangent(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc2_ConstructEndPointsTangent(IPoint from, IPoint to, bool isCCW, double tangentDistance)

Parameters

from IPoint
to IPoint
isCCW bool
tangentDistance double

IConstructCircularArc2_ConstructFilletPoint(ISegment, ISegment, IPoint, IPoint)

virtual void IConstructCircularArc2_ConstructFilletPoint(ISegment s1, ISegment s2, IPoint from, IPoint hintPoint)

Parameters

s1 ISegment
s2 ISegment
from IPoint
hintPoint IPoint

IConstructCircularArc2_ConstructFilletRadius(ISegment, ISegment, double, IPoint)

virtual void IConstructCircularArc2_ConstructFilletRadius(ISegment s1, ISegment s2, double inRadius, IPoint hintPoint)

Parameters

s1 ISegment
s2 ISegment
inRadius double
hintPoint IPoint

IConstructCircularArc2_ConstructTangentAndPoint(ISegment, bool, IPoint)

virtual void IConstructCircularArc2_ConstructTangentAndPoint(ISegment s, bool atFrom, IPoint p)

Parameters

s ISegment
atFrom bool
p IPoint

IConstructCircularArc2_ConstructTangentAngleArc(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
CentralAngle double
arcDistance double

IConstructCircularArc2_ConstructTangentAngleChord(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
CentralAngle double
chordDistance double

IConstructCircularArc2_ConstructTangentAngleTangent(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
CentralAngle double
tangentDistance double

IConstructCircularArc2_ConstructTangentArcTangent(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
arcDistance double
tangentDistance double

IConstructCircularArc2_ConstructTangentChordArc(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
chordDistance double
arcDistance double

IConstructCircularArc2_ConstructTangentChordTangent(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
chordDistance double
tangentDistance double

IConstructCircularArc2_ConstructTangentDistance(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc2_ConstructTangentDistance(IPoint Center, IPoint from, bool isCCW, double tangentDistance)

Parameters

Center IPoint
from IPoint
isCCW bool
tangentDistance double

IConstructCircularArc2_ConstructTangentRadiusAngle(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
CentralAngle double

IConstructCircularArc2_ConstructTangentRadiusArc(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
arcDistance double

IConstructCircularArc2_ConstructTangentRadiusChord(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
chordDistance double

IConstructCircularArc2_ConstructTangentRadiusTangent(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
tangentDistance double

IConstructCircularArc2_ConstructThreePoints(IPoint, IPoint, IPoint, bool)

virtual void IConstructCircularArc2_ConstructThreePoints(IPoint from, IPoint middle, IPoint to, bool useExistingCenter)

Parameters

from IPoint
middle IPoint
to IPoint
useExistingCenter bool

IConstructCircularArc2_QueryFilletRadiusRange(ISegment, ISegment, IPoint, out double, out double)

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

Parameters

s1 ISegment
s2 ISegment
hintPoint IPoint
minRadius double
maxRadius double

IConstructCircularArc3_ConstructArcDistance(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc3_ConstructArcDistance(IPoint Center, IPoint from, bool isCCW, double arcDistance)

Parameters

Center IPoint
from IPoint
isCCW bool
arcDistance double

IConstructCircularArc3_ConstructBearingAngleArc(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
CentralAngle double
arcDistance double

IConstructCircularArc3_ConstructBearingAngleChord(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
CentralAngle double
chordDistance double

IConstructCircularArc3_ConstructBearingAngleTangent(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
CentralAngle double
tangentDistance double

IConstructCircularArc3_ConstructBearingArcTangent(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
arcDistance double
tangentDistance double

IConstructCircularArc3_ConstructBearingChordArc(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
chordDistance double
arcDistance double

IConstructCircularArc3_ConstructBearingChordTangent(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
chordDistance double
tangentDistance double

IConstructCircularArc3_ConstructBearingRadiusAngle(IPoint, double, bool, double, double)

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

Parameters

startPoint IPoint
inAngle double
isCCW bool
inRadius double
CentralAngle double

IConstructCircularArc3_ConstructBearingRadiusArc(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
inRadius double
arcDistance double

IConstructCircularArc3_ConstructBearingRadiusChord(IPoint, double, bool, double, double, bool)

virtual void IConstructCircularArc3_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

IConstructCircularArc3_ConstructBearingRadiusTangent(IPoint, double, bool, double, double)

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

Parameters

from IPoint
inAngle double
isCCW bool
inRadius double
tangentDistance double

IConstructCircularArc3_ConstructChordDistance(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc3_ConstructChordDistance(IPoint Center, IPoint from, bool isCCW, double chordDistance)

Parameters

Center IPoint
from IPoint
isCCW bool
chordDistance double

IConstructCircularArc3_ConstructChordDistanceEx(IPoint, IPoint, bool, double, bool)

virtual void IConstructCircularArc3_ConstructChordDistanceEx(IPoint Center, IPoint from, bool isCCW, double chordDistance, bool IsMinor)

Parameters

Center IPoint
from IPoint
isCCW bool
chordDistance double
IsMinor bool

IConstructCircularArc3_ConstructCircle(IPoint, double, bool)

virtual void IConstructCircularArc3_ConstructCircle(IPoint CenterPoint, double Radius, bool isCCW)

Parameters

CenterPoint IPoint
Radius double
isCCW bool

IConstructCircularArc3_ConstructEndPointsAngle(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc3_ConstructEndPointsAngle(IPoint from, IPoint to, bool isCCW, double CentralAngle)

Parameters

from IPoint
to IPoint
isCCW bool
CentralAngle double

IConstructCircularArc3_ConstructEndPointsArc(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc3_ConstructEndPointsArc(IPoint from, IPoint to, bool isCCW, double arcDistance)

Parameters

from IPoint
to IPoint
isCCW bool
arcDistance double

IConstructCircularArc3_ConstructEndPointsChordHeight(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc3_ConstructEndPointsChordHeight(IPoint from, IPoint to, bool isCCW, double ChordHeight)

Parameters

from IPoint
to IPoint
isCCW bool
ChordHeight double

IConstructCircularArc3_ConstructEndPointsRadius(IPoint, IPoint, bool, double, bool)

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

Parameters

from IPoint
to IPoint
isCCW bool
inRadius double
IsMinor bool

IConstructCircularArc3_ConstructEndPointsTangent(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc3_ConstructEndPointsTangent(IPoint from, IPoint to, bool isCCW, double tangentDistance)

Parameters

from IPoint
to IPoint
isCCW bool
tangentDistance double

IConstructCircularArc3_ConstructFilletPoint(ISegment, ISegment, IPoint, IPoint)

virtual void IConstructCircularArc3_ConstructFilletPoint(ISegment s1, ISegment s2, IPoint from, IPoint hintPoint)

Parameters

s1 ISegment
s2 ISegment
from IPoint
hintPoint IPoint

IConstructCircularArc3_ConstructFilletRadius(ISegment, ISegment, double, IPoint)

virtual void IConstructCircularArc3_ConstructFilletRadius(ISegment s1, ISegment s2, double inRadius, IPoint hintPoint)

Parameters

s1 ISegment
s2 ISegment
inRadius double
hintPoint IPoint

IConstructCircularArc3_ConstructTangentAndPoint(ISegment, bool, IPoint)

virtual void IConstructCircularArc3_ConstructTangentAndPoint(ISegment s, bool atFrom, IPoint p)

Parameters

s ISegment
atFrom bool
p IPoint

IConstructCircularArc3_ConstructTangentAngleArc(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
CentralAngle double
arcDistance double

IConstructCircularArc3_ConstructTangentAngleChord(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
CentralAngle double
chordDistance double

IConstructCircularArc3_ConstructTangentAngleTangent(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
CentralAngle double
tangentDistance double

IConstructCircularArc3_ConstructTangentArcTangent(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
arcDistance double
tangentDistance double

IConstructCircularArc3_ConstructTangentChordArc(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
chordDistance double
arcDistance double

IConstructCircularArc3_ConstructTangentChordTangent(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
chordDistance double
tangentDistance double

IConstructCircularArc3_ConstructTangentDistance(IPoint, IPoint, bool, double)

virtual void IConstructCircularArc3_ConstructTangentDistance(IPoint Center, IPoint from, bool isCCW, double tangentDistance)

Parameters

Center IPoint
from IPoint
isCCW bool
tangentDistance double

IConstructCircularArc3_ConstructTangentRadiusAngle(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
CentralAngle double

IConstructCircularArc3_ConstructTangentRadiusArc(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
arcDistance double

IConstructCircularArc3_ConstructTangentRadiusChord(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
chordDistance double

IConstructCircularArc3_ConstructTangentRadiusChordEx(ISegment, bool, bool, double, double, bool)

virtual void IConstructCircularArc3_ConstructTangentRadiusChordEx(ISegment Segment, bool atStart, bool isCCW, double inRadius, double chordDistance, bool IsMinor)

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
chordDistance double
IsMinor bool

IConstructCircularArc3_ConstructTangentRadiusTangent(ISegment, bool, bool, double, double)

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

Parameters

Segment ISegment
atStart bool
isCCW bool
inRadius double
tangentDistance double

IConstructCircularArc3_ConstructThreePoints(IPoint, IPoint, IPoint, bool)

virtual void IConstructCircularArc3_ConstructThreePoints(IPoint from, IPoint middle, IPoint to, bool useExistingCenter)

Parameters

from IPoint
middle IPoint
to IPoint
useExistingCenter bool

IConstructCircularArc3_QueryFilletRadiusRange(ISegment, ISegment, IPoint, out double, out double)

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

Parameters

s1 ISegment
s2 ISegment
hintPoint IPoint
minRadius double
maxRadius double

ICurve2_Dimension

virtual esriGeometryDimension ICurve2_Dimension { get; }

Returns

esriGeometryDimension

ICurve2_Envelope

virtual IEnvelope ICurve2_Envelope { get; }

Returns

IEnvelope

ICurve2_FromPoint

virtual IPoint ICurve2_FromPoint { get; set; }

Returns

IPoint

ICurve2_GeoNormalize()

virtual void ICurve2_GeoNormalize()

ICurve2_GeoNormalizeFromLongitude(double)

virtual void ICurve2_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

ICurve2_GeometryType

virtual esriGeometryType ICurve2_GeometryType { get; }

Returns

esriGeometryType

ICurve2_GetSubcurve(double, double, bool, out ICurve)

virtual void ICurve2_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

ICurve2_IsClosed

virtual bool ICurve2_IsClosed { get; }

Returns

bool

ICurve2_IsEmpty

virtual bool ICurve2_IsEmpty { get; }

Returns

bool

ICurve2_Length

virtual double ICurve2_Length { get; }

Returns

double

ICurve2_Project(ISpatialReference)

virtual void ICurve2_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

ICurve2_QueryEnvelope(IEnvelope)

virtual void ICurve2_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

ICurve2_QueryFromPoint(IPoint)

virtual void ICurve2_QueryFromPoint(IPoint from)

Parameters

from IPoint

ICurve2_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void ICurve2_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

ICurve2_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void ICurve2_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

ICurve2_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void ICurve2_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

ICurve2_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void ICurve2_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

ICurve2_QueryToPoint(IPoint)

virtual void ICurve2_QueryToPoint(IPoint to)

Parameters

to IPoint

ICurve2_ReverseOrientation()

virtual void ICurve2_ReverseOrientation()

ICurve2_SetEmpty()

virtual void ICurve2_SetEmpty()

ICurve2_SnapToSpatialReference()

virtual void ICurve2_SnapToSpatialReference()

ICurve2_SpatialReference

virtual ISpatialReference ICurve2_SpatialReference { get; set; }

Returns

ISpatialReference

ICurve2_ToPoint

virtual IPoint ICurve2_ToPoint { get; set; }

Returns

IPoint

ICurve3_Dimension

virtual esriGeometryDimension ICurve3_Dimension { get; }

Returns

esriGeometryDimension

ICurve3_Envelope

virtual IEnvelope ICurve3_Envelope { get; }

Returns

IEnvelope

ICurve3_FromPoint

virtual IPoint ICurve3_FromPoint { get; set; }

Returns

IPoint

ICurve3_GeoNormalize()

virtual void ICurve3_GeoNormalize()

ICurve3_GeoNormalizeFromLongitude(double)

virtual void ICurve3_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

ICurve3_GeometryType

virtual esriGeometryType ICurve3_GeometryType { get; }

Returns

esriGeometryType

ICurve3_GetSubcurve(double, double, bool, out ICurve)

virtual void ICurve3_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

ICurve3_IsClosed

virtual bool ICurve3_IsClosed { get; }

Returns

bool

ICurve3_IsEmpty

virtual bool ICurve3_IsEmpty { get; }

Returns

bool

ICurve3_Length

virtual double ICurve3_Length { get; }

Returns

double

ICurve3_Project(ISpatialReference)

virtual void ICurve3_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

ICurve3_PutCoordsEx(IPoint, IPoint)

virtual void ICurve3_PutCoordsEx(IPoint from, IPoint to)

Parameters

from IPoint
to IPoint

ICurve3_QueryEnvelope(IEnvelope)

virtual void ICurve3_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

ICurve3_QueryFromPoint(IPoint)

virtual void ICurve3_QueryFromPoint(IPoint from)

Parameters

from IPoint

ICurve3_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void ICurve3_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

ICurve3_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void ICurve3_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

ICurve3_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void ICurve3_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

ICurve3_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void ICurve3_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

ICurve3_QueryToPoint(IPoint)

virtual void ICurve3_QueryToPoint(IPoint to)

Parameters

to IPoint

ICurve3_ReverseOrientation()

virtual void ICurve3_ReverseOrientation()

ICurve3_SetEmpty()

virtual void ICurve3_SetEmpty()

ICurve3_SnapToSpatialReference()

virtual void ICurve3_SnapToSpatialReference()

ICurve3_SpatialReference

virtual ISpatialReference ICurve3_SpatialReference { get; set; }

Returns

ISpatialReference

ICurve3_ToPoint

virtual IPoint ICurve3_ToPoint { get; set; }

Returns

IPoint

ICurve_Dimension

virtual esriGeometryDimension ICurve_Dimension { get; }

Returns

esriGeometryDimension

ICurve_Envelope

virtual IEnvelope ICurve_Envelope { get; }

Returns

IEnvelope

ICurve_FromPoint

The 'from' point of the curve.

virtual IPoint ICurve_FromPoint { get; set; }

Returns

IPoint

Remarks

 

FromPoint Example

ICurve_GeoNormalize()

virtual void ICurve_GeoNormalize()

ICurve_GeoNormalizeFromLongitude(double)

virtual void ICurve_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

ICurve_GeometryType

virtual esriGeometryType ICurve_GeometryType { get; }

Returns

esriGeometryType

ICurve_GetSubcurve(double, double, bool, out ICurve)

Extracts a portion of this curve into a new curve.

virtual void ICurve_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

Remarks

 

Subcurve Example

ICurve_IsClosed

Indicates if 'from' and 'to' points (of each part) are identical.

virtual bool ICurve_IsClosed { get; }

Returns

bool

Remarks

IsClosed may still return TRUE if the curve consists of improperly constructed geometries (ex. non-continuous paths).  IsClosed only checks the location of the From and To points of each part, it does not check the internal parts for topological consistency.

ICurve IsClosed Example

ICurve_IsEmpty

virtual bool ICurve_IsEmpty { get; }

Returns

bool

ICurve_Length

The length of the curve.

virtual double ICurve_Length { get; }

Returns

double

ICurve_Project(ISpatialReference)

virtual void ICurve_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

ICurve_QueryEnvelope(IEnvelope)

virtual void ICurve_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

ICurve_QueryFromPoint(IPoint)

Copies this curve's 'from' point to the input point.

virtual void ICurve_QueryFromPoint(IPoint from)

Parameters

from IPoint

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

QueryFromPoint Example

[C#]

//The example shows how to query the from and to points of a curve.
public void ICurveQueryPoints(IFeature currentFeature)
{
    if (currentFeature.Shape.GeometryType == esriGeometryType.esriGeometryPolyline ||
        currentFeature.Shape.GeometryType == esriGeometryType.esriGeometryLine)
    {
        ICurve curve = currentFeature.Shape as ICurve;
        IPoint fromPoint = new PointClass();
        IPoint toPoint = new PointClass();
        curve.QueryFromPoint(fromPoint);
        curve.QueryToPoint(toPoint);
        System.Windows.Forms.MessageBox.Show("ICurve properties..." + "\n" +
                        "Curve.QueryFromPoint (x,y) = " + fromPoint.X + "," + fromPoint.Y + "\n" +
                        "Curve.QueryToPoint (x,y) = " + toPoint.X + "," + toPoint.Y);
    }
}














[Visual Basic .NET]

    ' The example shows how to query the from and to points of a curve.
    Public Sub t_ICurve_QueryPoints(ByVal pFeature As IFeature)
        Dim pCurve As ICurve
        Dim pPointFrom As IPoint
        Dim pPointTo As IPoint
        pPointFrom = New Point
        pPointTo = New Point





        If pFeature.Shape.GeometryType = esriGeometryType.esriGeometryPolyline Or _
            esriGeometryType.esriGeometryPolyline Or esriGeometryType.esriGeometryLine Then
            pCurve = pFeature.Shape
            pCurve.QueryFromPoint(pPointFrom)
            pCurve.QueryToPoint(pPointTo)
            MsgBox("+++ICurve properties..." & vbCrLf _
              & "Curve.QueryFromPoint (x,y) = " & pPointFrom.X & "," & pPointFrom.Y & vbCrLf _
              & "Curve.QueryToPoint (x,y) = " & pPointTo.X & "," & pPointTo.Y & vbCrLf)
        End If
    End Sub








ICurve_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

Constructs a line normal to a curve from a point at a specified distance along the curve.

virtual void ICurve_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

Remarks

 

QueryNormal Example

ICurve_QueryPoint(esriSegmentExtension, double, bool, IPoint)

Copies to outPoint the properties of a point on the curve at a specified distance from the beginning of the curve.

virtual void ICurve_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

ICurve QueryPoint Example

ICurve_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

Finds the point on the curve closest to inPoint, then copies that point to outPoint; optionally calculates related items.

virtual void ICurve_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

Remarks

AsRatio is an input parameter that only affects the DistanceAlongCurve

distanceFromCurve is an output parameter that represents the minimum distance between the curve and the input point.

DistanceAlongCurve is an output parameter that represents the distance between the Frompoint of the input curve and the returned point on the curve.

bRightSide is an output parameter that tells if the input point is on the right side of the curve. The direction of the curve determines the right and left sides.

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

QueryPointAndDistance Example

ICurve_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

Constructs a line tangent to a curve from a point at a specified distance along the curve.

virtual void ICurve_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

Remarks

 

QueryTangent Example

ICurve_QueryToPoint(IPoint)

Copies the curve's 'to' point into the input point.

virtual void ICurve_QueryToPoint(IPoint to)

Parameters

to IPoint

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

QueryToPoint Example

ICurve_ReverseOrientation()

Reverses the parameterization of the curve ('from' point becomes 'to' point, first segment becomes last segment, etc).

virtual void ICurve_ReverseOrientation()

Remarks

The ReverseOrientation method works the same way as the Arcedit FLIP command. It reverses the order of the vertices in the Curve.

Caution should be taken in using ReverseOrientation on Polygons.  Since ReverseOrientation changes the direction of each Ring within the Polygon, all Exterior Rings become Interior Rings and vice versa.

Reverse Orientation Example

[C#]

    public void ReverseOrientation(IFeatureClass featureClass, int oidToEdit)
    {
        IFeature feature = featureClass.GetFeature(oidToEdit);
        if (feature.Shape.GeometryType == esriGeometryType.esriGeometryPolygon)
        {
            IArea area = feature.Shape as IArea;
            double beforeReverse = area.Area;
            ICurve curve = feature.Shape as ICurve;
            curve.ReverseOrientation();
            double afterReverse = area.Area;
            System.Windows.Forms.MessageBox.Show(String.Format("The polygon area is originally {0}, after the orientation was reversed the area is {1}.",beforeReverse,afterReverse));
        }
    }











ICurve_SetEmpty()

virtual void ICurve_SetEmpty()

ICurve_SnapToSpatialReference()

virtual void ICurve_SnapToSpatialReference()

ICurve_SpatialReference

virtual ISpatialReference ICurve_SpatialReference { get; set; }

Returns

ISpatialReference

ICurve_ToPoint

The 'to' point of the curve.

virtual IPoint ICurve_ToPoint { get; set; }

Returns

IPoint

Remarks

 

ToPoint Example

IGeometry_Dimension

The topological dimension of this geometry.

virtual esriGeometryDimension IGeometry_Dimension { get; }

Returns

esriGeometryDimension

Remarks


Note: At 9.0, Multipatches are now considered as two dimensional geometry. esriGeometry3Dimension will be used for an upcoming new geometry type.
Supported esriGeometryDimensions:

-1    esriGeometryNoDimension
1    esriGeometry0Dimension
2    esriGeometry1Dimension
4    esriGeometry2Dimension
5    esriGeometry25Dimension
6    esriGeometry3Dimension






Dimension Example





IGeometry_Envelope

Creates a copy of this geometry's envelope and returns it.

virtual IEnvelope IGeometry_Envelope { get; }

Returns

IEnvelope

Examples

Sample Snippet

<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
<img src="./bitmaps/envelope.gif" align=
"baseline"></span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
 </p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> <span style=
"COLOR: blue">public</span> <span style="COLOR: blue">static</span>
<span style="COLOR: teal">IGeometry</span>
GetEnvelopeGeometry()</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> DeltaX = 2.5;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> DeltaY = 2.5;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> DeltaZ = 2.5;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: teal">IPoint</span> centerPoint =
GetPoint();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: teal">IEnvelope</span> envelope = <span style=
"COLOR: blue">new</span> <span style=
"COLOR: teal">EnvelopeClass</span>();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.XMin = centerPoint.X - DeltaX;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.XMax = centerPoint.X + DeltaX;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.YMin = centerPoint.Y - DeltaY;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.YMax = centerPoint.Y + DeltaY;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.ZMin = centerPoint.Z - DeltaZ;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
envelope.ZMax = centerPoint.Z + DeltaZ;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
MakeZAware(envelope <span style="COLOR: blue">as</span>
<span style="COLOR: teal">IGeometry</span>);</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">return</span> envelope <span style=
"COLOR: blue">as</span> <span style=
"COLOR: teal">IGeometry</span>;</span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><span style=
"FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
<span style=
"mso-spacerun: yes">       </span>
}</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> <span style=
"COLOR: blue">private</span> <span style=
"COLOR: blue">static</span> <span style="COLOR: teal">IPoint</span>
GetPoint()</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> Min = -10;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> Max = 10;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: teal">Random</span> random = <span style=
"COLOR: blue">new</span> <span style=
"COLOR: teal">Random</span>();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">double</span> x = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">double</span> y = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">double</span> z = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: blue">return</span> ConstructPoint3D(x, y,
z);</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> }</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
private</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
static</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
ConstructPoint3D(</span><span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">double</span>
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
x,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
y,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
z)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
{</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point = ConstructPoint2D(x, y);</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span>
point.Z = z;<br>
<br>
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
return</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
}<br>
<br style="mso-special-character: line-break">
<br style="mso-special-character: line-break"></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
private</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
static</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
ConstructPoint2D(</span><span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">double</span>
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
x,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
y)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
{</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point =</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
new</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
PointClass</span><span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span>
point.PutCoords(x, y);<br>
<span style="mso-spacerun: yes"> </span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">           </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
return</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal"><span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes">       </span>
}</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> <span style=
"COLOR: blue">private</span> <span style=
"COLOR: blue">static</span> <span style="COLOR: blue">void</span>
MakeZAware(<span style="COLOR: teal">IGeometry</span>
geometry)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
<span style="COLOR: teal">IZAware</span> zAware = geometry
<span style="COLOR: blue">as</span> <span style=
"COLOR: teal">IZAware</span>;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
           </span>
zAware.ZAware = <span style="COLOR: blue">true</span>;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
       </span> }</span></p>

Remarks

 

Envelope Example

IGeometry_GeoNormalize()

Shifts longitudes, if need be, into a continuous range of 360 degrees.

virtual void IGeometry_GeoNormalize()

Remarks

GeoNormalize acts on geometries whose geographic system coordinates are below -180 degrees longitude or over +180 degrees longitude or on geometries that span the +-180 degrees longitude.
 
This method requires the geometry to have a valid spatial reference (geographic or projected coordinate system).
 
This method is used internally as part of the projection process for polygons and polylines.  It is typically not used by itself.
 

IGeometry_GeoNormalizeFromLongitude(double)

Normalizes longitudes into a continuous range containing the longitude. This method is obsolete.

virtual void IGeometry_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

Remarks

This method is obsolete.  Use IGeometry::GeoNormalize instead.
 
This method requires the geometry to have a valid spatial reference (geographic or projected coordinate system).

IGeometry_GeometryType

The type of this geometry.

virtual esriGeometryType IGeometry_GeometryType { get; }

Returns

esriGeometryType

Remarks

esriGeometryNull          = 0
esriGeometryPoint = 1
esriGeometryMultipoint = 2
esriGeometryPolyline = 3
esriGeometryPolygon = 4
esriGeometryEnvelope = 5
esriGeometryPath = 6
esriGeometryAny = 7
esriGeometryMultiPatch = 9
esriGeometryRing = 11
esriGeometryLine = 13
esriGeometryCircularArc = 14
esriGeometryBezier3Curve = 15
esriGeometryEllipticArc = 16
esriGeometryBag = 17
esriGeometryTriangleStrip = 18
esriGeometryTriangleFan = 19
esriGeometryRay = 20
esriGeometrySphere = 21

















Geometry Type Example

IGeometry_IsEmpty

Indicates whether this geometry contains any points.

virtual bool IGeometry_IsEmpty { get; }

Returns

bool

IGeometry_Project(ISpatialReference)

Projects this geometry into a new spatial reference.

virtual void IGeometry_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

Remarks

Note: This method can only be called upon the top level geometries (Points, Multipoints, Polylines and Polygons).  If the from/to spatial references have different geographic coordinate systems, the Project method looks for a GeoTransformationsOperationSet. If the set of Geotransformations is present in memory, Project will use it to perform a geographic/datum Transformation. To use a specific geotransformation, use the IGeometry2::ProjectEx method.

[C#]
//Create Spatial Reference Factory
ISpatialReferenceFactory srFactory = new SpatialReferenceEnvironmentClass();
ISpatialReference sr1;
//GCS to project from 
IGeographicCoordinateSystem gcs = srFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_NAD1983);
sr1 = gcs;
sr1.SetFalseOriginAndUnits(-180, -90, 1000000);
//Projected Coordinate System to project into
IProjectedCoordinateSystem pcs = srFactory.CreateProjectedCoordinateSystem((int)esriSRProjCSType.esriSRProjCS_NAD1983N_AmericaLambert);
pcs.SetFalseOriginAndUnits(0, 0, 1000);
ISpatialReference sr2;
sr2 = pcs;
//Point to project
IPoint point = new PointClass() as IPoint;
point.PutCoords(-117.17, 34.06);
//Geometry Interface to do actual project
IGeometry geometry;
geometry = point;
geometry.SpatialReference = sr1;
geometry.Project(sr2);
point = geometry as IPoint;
double x;
double y;
point.QueryCoords(out x, out y);
Debug.Print("X: " + x.ToString());
Debug.Print("Y: " + y.ToString());

IGeometry_QueryEnvelope(IEnvelope)

Copies this geometry's envelope properties into the specified envelope.

virtual void IGeometry_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

QueryEnvelope Example

IGeometry_SetEmpty()

Removes all points from this geometry.

virtual void IGeometry_SetEmpty()

Remarks


Use the SetEmpty method to clear geometries and release memory. For example, a polygon with 100 rings will have an internal array of 100 pointers to ring objects. That array will go away and Release will be called on each ring. If that polygon had the only reference on those rings, then they'll go away, which releases all their segments, which may also then go away.


[C#]     private bool EmptyGeometry(IGeometry geometry)
    {
        geometry.SetEmpty();
        return geometry.IsEmpty;
    }



IGeometry_SnapToSpatialReference()

Moves points of this geometry so that they can be represented in the precision of the geometry's associated spatial reference system.

virtual void IGeometry_SnapToSpatialReference()

Remarks

SnapToSpatialReference rounds all coordinates to the resolution defined by the geometry's spatial reference system. This has a similar effect on the geometry as storing the geometry in a Geodatabase.

IGeometry_SpatialReference

The spatial reference associated with this geometry.

virtual ISpatialReference IGeometry_SpatialReference { get; set; }

Returns

ISpatialReference

ISegment_Dimension

virtual esriGeometryDimension ISegment_Dimension { get; }

Returns

esriGeometryDimension

ISegment_Envelope

virtual IEnvelope ISegment_Envelope { get; }

Returns

IEnvelope

ISegment_FromPoint

virtual IPoint ISegment_FromPoint { get; set; }

Returns

IPoint

ISegment_GeoNormalize()

virtual void ISegment_GeoNormalize()

ISegment_GeoNormalizeFromLongitude(double)

virtual void ISegment_GeoNormalizeFromLongitude(double Longitude)

Parameters

Longitude double

ISegment_GeometryType

virtual esriGeometryType ISegment_GeometryType { get; }

Returns

esriGeometryType

ISegment_GetSubcurve(double, double, bool, out ICurve)

virtual void ISegment_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)

Parameters

fromDistance double
toDistance double
asRatio bool
outSubcurve ICurve

ISegment_IsClosed

virtual bool ISegment_IsClosed { get; }

Returns

bool

ISegment_IsEmpty

virtual bool ISegment_IsEmpty { get; }

Returns

bool

ISegment_Length

virtual double ISegment_Length { get; }

Returns

double

ISegment_Project(ISpatialReference)

virtual void ISegment_Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

ISegment_QueryEnvelope(IEnvelope)

virtual void ISegment_QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

ISegment_QueryFromPoint(IPoint)

virtual void ISegment_QueryFromPoint(IPoint from)

Parameters

from IPoint

ISegment_QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void ISegment_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

ISegment_QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void ISegment_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

ISegment_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void ISegment_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

ISegment_QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void ISegment_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

ISegment_QueryToPoint(IPoint)

virtual void ISegment_QueryToPoint(IPoint to)

Parameters

to IPoint

ISegment_ReverseOrientation()

virtual void ISegment_ReverseOrientation()

ISegment_SetEmpty()

virtual void ISegment_SetEmpty()

ISegment_SnapToSpatialReference()

virtual void ISegment_SnapToSpatialReference()

ISegment_SpatialReference

virtual ISpatialReference ISegment_SpatialReference { get; set; }

Returns

ISpatialReference

ISegment_ToPoint

virtual IPoint ISegment_ToPoint { get; set; }

Returns

IPoint

InterfaceSupportsErrorInfo(ref Guid)

virtual void InterfaceSupportsErrorInfo(ref Guid riid)

Parameters

riid Guid

InterpolateVertexAttributes(double, bool, IPoint)

Interpolates Z and M values at distanceAlongSegment and stores the results at point.

virtual void InterpolateVertexAttributes(double distanceAlongSegment, bool asRatio, IPoint atPoint)

Parameters

distanceAlongSegment double
asRatio bool
atPoint IPoint

IsClosed

virtual bool IsClosed { get; }

Returns

bool

IsCounterClockwise

Indicates if this circular is oriented counter-clockwise from its 'from' point to its 'to' point.

virtual bool IsCounterClockwise { get; set; }

Returns

bool

Remarks

 

IsCCW Example

IsEmpty

virtual bool IsEmpty { get; }

Returns

bool

IsEqual(IClone)

Indicates if the receiver and other have the same properties.

virtual bool IsEqual(IClone other)

Parameters

other IClone

Returns

bool

IsIdentical(IClone)

Indicates if the receiver and other are the same object.

virtual bool IsIdentical(IClone other)

Parameters

other IClone

Returns

bool

IsLine

Indicates if the arc has degenerated to a line (radius is infinite).

virtual bool IsLine { get; }

Returns

bool

Remarks

A CircularArc that returns TRUE can be constructed using ConstructThreePoints and three colinear points.

 

CircularArc IsLine Example

IsMinor

Indicates whether this circular arc is a minor arc or a major arc.

virtual bool IsMinor { get; set; }

Returns

bool

Remarks

 

CircularArc IsMinor Example

IsPoint

Indicates if the arc has degenerated to a point (radius is 0).

virtual bool IsPoint { get; }

Returns

bool

Remarks

IsPoint returns FALSE when the Radius > 0, even if the CentralAngle equals 0.

 

CircularArc IsPoint Example

Length

virtual double Length { get; }

Returns

double

MaxDistanceFromLine(ref WKSPoint, ref WKSPoint, double, double, double, ref double, ref double, ref WKSPoint)

Returns the maximum distance from the line.

virtual void MaxDistanceFromLine(ref WKSPoint baseFrom, ref WKSPoint baseTo, double minOffset, double fromArcDistance, double toArcDistance, ref double maxOffset, ref double atArcDistance, ref WKSPoint farPoint)

Parameters

baseFrom WKSPoint
baseTo WKSPoint
minOffset double
fromArcDistance double
toArcDistance double
maxOffset double
atArcDistance double
farPoint WKSPoint

Move(double, double)

Moves dx units horizontally and dy units vertically.

virtual void Move(double dx, double dy)

Parameters

dx double
dy double

Remarks

 

Transform2D Move Example

MoveVector(ILine)

Moves a direction and distance v. v can be in a different spatial reference than the geometry being moved.

virtual void MoveVector(ILine v)

Parameters

v ILine

Remarks

 

Transform2D MoveVector Example

Project(ISpatialReference)

virtual void Project(ISpatialReference newReferenceSystem)

Parameters

newReferenceSystem ISpatialReference

PutAttributes(bool, bool, ref esriPointAttributes, ref esriPointAttributes)

Sets some attributes from this point and copies them to another point. Awareness is not considered.

virtual void PutAttributes(bool PutAttributes, bool putAwareness, ref esriPointAttributes from, ref esriPointAttributes to)

Parameters

PutAttributes bool
putAwareness bool
from esriPointAttributes
to esriPointAttributes

PutCoords(IPoint, IPoint, IPoint, esriArcOrientation)

Defines this arc by a center point, 'from' and 'to' points, and orientation. If the from and to points do not lie on the same circle, the arc's center point will be adjusted.

virtual void PutCoords(IPoint Center, IPoint from, IPoint to, esriArcOrientation arcOrientation)

Parameters

Center IPoint
from IPoint
to IPoint
arcOrientation esriArcOrientation

Remarks

If the FromPoint, ToPoint and CenterPoint specified do not create a circle, the created arc will have its CenterPoint adjusted until the FromPoint and ToPoint can be accomodated on the same circle. Therefore the resultant arcs CenterPoint may not be exactly the same as the input CenterPoint.

ICircularArc PutCoords Example

PutCoordsByAngle(IPoint, double, double, double)

Defines this circular arc by a center point, 'from' angle, signed central angle, and radius.

virtual void PutCoordsByAngle(IPoint cp, double FromAngle, double CentralAngle, double arcRadius)

Parameters

cp IPoint
FromAngle double
CentralAngle double
arcRadius double

Remarks

PutCoordsByAngle is one of the easiest ways to create a desired Circular Arc.  However, due to numeric accuracy limitations of computers and trigonometric functions, the From and To Points may be very slightly offset from the expected coordinates.  This is important to keep in mind when attempting to connect the endpoints to other segments.

ICircularArc PutCoordsByAngle Example

PutCoordsEx(IPoint, IPoint)

Sets this segment's endpoints to 'from' and 'to'.

virtual void PutCoordsEx(IPoint from, IPoint to)

Parameters

from IPoint
to IPoint

PutRadiusByPoint(IPoint)

Defines the radius of this circular arc to be the distance from the arc's center point to the input point; other properties remain unchanged.

virtual void PutRadiusByPoint(IPoint radialPoint)

Parameters

radialPoint IPoint

Remarks

 

CircularArc PutRadiusByPoint Example

PutVertexAttributes(esriGeometryAttributes, double, double)

Sets the 'from' and the 'to' attribute values.

virtual void PutVertexAttributes(esriGeometryAttributes attributeType, double fromAttribute, double toAttribute)

Parameters

attributeType esriGeometryAttributes
fromAttribute double
toAttribute double

QueryAreaCorrection(out double)

Queries the area correction value.

virtual void QueryAreaCorrection(out double areaCorrection)

Parameters

areaCorrection double

QueryAttributes(bool, bool, ref esriPointAttributes, ref esriPointAttributes)

Gets some attributes from this point and copies them to another point. Awareness is not considered.

virtual void QueryAttributes(bool getAttributes, bool getAwareness, ref esriPointAttributes from, ref esriPointAttributes to)

Parameters

getAttributes bool
getAwareness bool
from esriPointAttributes
to esriPointAttributes

QueryCenterPoint(IPoint)

Copies the center point of this circular arc to the input point.

virtual void QueryCenterPoint(IPoint Center)

Parameters

Center IPoint

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

CircularArc QueryCenterPoint Example

[C#]

private void showCenterPoint()
{
    //Create three points to draw an arc through.
    IPoint point1 = new ESRI.ArcGIS.Geometry.Point();
    IPoint point2 = new ESRI.ArcGIS.Geometry.Point();
    IPoint point3 = new ESRI.ArcGIS.Geometry.Point();
    point1.PutCoords(200, 200);
    point2.PutCoords(200, 300);
    point3.PutCoords(300, 300);
    //Construct a Three Point Arc.
    IConstructCircularArc constructionArc = new CircularArc() as IConstructCircularArc;
    constructionArc.ConstructThreePoints(point1, point2, point3, false);
    ICircularArc circularArc = constructionArc as ICircularArc;











    System.Windows.Forms.MessageBox.Show(
        "Values from QueryCenterPoint are: \n" +
        "Center Point X coord: " + circularArc.CenterPoint.X + ",\n" +
        "Center Point Y coord: " + circularArc.CenterPoint.Y
        );
   
}





QueryCentroidCorrection(ref double, ref double, ref double)

Queries the centroid correction value.

virtual void QueryCentroidCorrection(ref double weightedCentroidX, ref double weightedCentroidY, ref double areaCorrection)

Parameters

weightedCentroidX double
weightedCentroidY double
areaCorrection double

QueryCoords(IPoint, IPoint, IPoint, ref bool, ref bool)

Copies the center, 'from' and 'to' points, orientation and major/minor property into the input parameters.

virtual void QueryCoords(IPoint Center, IPoint from, IPoint to, ref bool isCCW, ref bool IsMinor)

Parameters

Center IPoint
from IPoint
to IPoint
isCCW bool
IsMinor bool

Remarks

These are the necessary inputs for PutCoords, except in special cases (half circle, full circle, and Central Angle = 0) where the ArcOrientation must know which of these cases exists to ensure that the desired Circular Arc is unambiguous.

-isCCW stands for "is counter clockwise"

ICircularArc QueryCoords Example

QueryCoordsByAngle(IPoint, ref double, ref double, ref double)

Returns the center point, 'from' angle, signed central angle, and radius.

virtual void QueryCoordsByAngle(IPoint Center, ref double FromAngle, ref double centerAngle, ref double arcRadius)

Parameters

Center IPoint
FromAngle double
centerAngle double
arcRadius double

Remarks

 

ICircularArc QueryCoordsByAngle Example

QueryCurvature(double, bool, out double, ILine)

Finds curvature and unit vector starting at point on segment and directed to embedded circle center.

virtual void QueryCurvature(double DistanceAlongCurve, bool asRatio, out double curvature, ILine unitVector)

Parameters

DistanceAlongCurve double
asRatio bool
curvature double
unitVector ILine

Remarks

The unit vector returned by QueryCurvature points toward the center of the circle that has the same first and second derivative at the queried point with a curvature value equal to 1 / Radius of that circle.

QueryCurvature Example

QueryEnvelope(IEnvelope)

virtual void QueryEnvelope(IEnvelope outEnvelope)

Parameters

outEnvelope IEnvelope

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.

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










QueryFromPoint(IPoint)

virtual void QueryFromPoint(IPoint from)

Parameters

from IPoint

QueryNearestPoint(IPoint, esriSegmentExtension, IPoint)

Copies into 'nearest' a point on this geometry nearest to the input point.

virtual void QueryNearestPoint(IPoint p, esriSegmentExtension extension, IPoint nearest)

Parameters

p IPoint
extension esriSegmentExtension
nearest IPoint

Remarks

 

QueryNearestPoint Example

QueryNormal(esriSegmentExtension, double, bool, double, ILine)

virtual void QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
normal ILine

QueryPoint(esriSegmentExtension, double, bool, IPoint)

virtual void QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
outPoint IPoint

QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)

virtual void QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)

Parameters

extension esriSegmentExtension
inPoint IPoint
asRatio bool
outPoint IPoint
DistanceAlongCurve double
distanceFromCurve double
bRightSide bool

QueryPointsAndDistances(esriSegmentExtension, double, IPoint, bool, ref double, out IEnumPointAndDistance)

Given an input point, calculates the minimum distance to the geometry and provides an enumerator over all closest points on the geometry, along with additional information.

virtual void QueryPointsAndDistances(esriSegmentExtension extension, double searchRadius, IPoint inPoint, bool asRatio, ref double distanceFromCurve, out IEnumPointAndDistance pointsAndDistances)

Parameters

extension esriSegmentExtension
searchRadius double
inPoint IPoint
asRatio bool
distanceFromCurve double
pointsAndDistances IEnumPointAndDistance

Remarks

AsRatio is an input parameter that only affects the DistanceAlongCurvereturned as part of the output IEnumPointAndDistance enumerator.

distanceFromCurve is an output parameter that represents the minimum distance between the curve and the input point.

IEnumPointAndDistance is an enumerator (it inherits from IEnumVertex) over all nearest points on the curve

QueryTangent(esriSegmentExtension, double, bool, double, ILine)

virtual void QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)

Parameters

extension esriSegmentExtension
DistanceAlongCurve double
asRatio bool
Length double
tangent ILine

QueryToPoint(IPoint)

virtual void QueryToPoint(IPoint to)

Parameters

to IPoint

QueryVertexAttributes(esriGeometryAttributes, out double, out double)

Gets the 'from' and the 'to' attribute values.

virtual void QueryVertexAttributes(esriGeometryAttributes attributeType, out double fromAttribute, out double toAttribute)

Parameters

attributeType esriGeometryAttributes
fromAttribute double
toAttribute double

QueryWKSEnvelope(ref WKSEnvelope)

Queries the WKS Envelope.

virtual void QueryWKSEnvelope(ref WKSEnvelope Envelope)

Parameters

Envelope WKSEnvelope

QueryWKSFromPoint(out WKSPoint)

Query the WKSPoint at the 'from' point.

virtual void QueryWKSFromPoint(out WKSPoint p)

Parameters

p WKSPoint

QueryWKSToPoint(out WKSPoint)

Query the WKSPoint at the 'to' point.

virtual void QueryWKSToPoint(out WKSPoint p)

Parameters

p WKSPoint

Radius

The radius.

virtual double Radius { get; set; }

Returns

double

Remarks

 

CircularArc Radius Example

ReturnDistance(IGeometry)

Returns the minimum distance between two geometries.

virtual double ReturnDistance(IGeometry other)

Parameters

other IGeometry

Returns

double

Remarks

 

ReturnDistance Example

The geometry combinations which can be used with ReturnDistance are:

Point: Point, MultiPoint, Envelope, Polyline, Polygon, Line, CircularArc, EllipticArc, BezierCurve.
Multipoint: Point, MultiPoint, Envelope, Polyline, Polygon.
Envelope: Point, MultiPoint, Envelope, Line, CircularArc, EllipticArc, BezierCurve, PolyLine, Polygon.
PolyLine: Point, Multipoint, Envelope, PolyLine, Polygon.
Polygon: Point, Multipoint, Envelope, PolyLine, Polygon.
Line: Point, Envelope, Line, CircularArc, EllipticArc, BezierCurve.
CircularArc: Point, Envelope, Line, CircularArc, EllipticArc (not implemented yet), BezierCurve.
EllipticArc: Point, Envelope, Line, CircularArc (not implemented yet), EllipticArc (not implemented yet), BezierCurve (not implemented yet).
BezierCurve: Point, Envelope, Line, CircularArc, EllipticArc (not implemented yet), BezierCurve.







Note: To get the distance between a segment (Line, CircularArc, EllipticArc, BezierCurve) and a MultiPoint, PolyLine or Polygon, add that segment to a PolyLine.

ReturnNearestPoint(IPoint, esriSegmentExtension)

Creates and returns a point on this geometry nearest to the input point.

virtual IPoint ReturnNearestPoint(IPoint p, esriSegmentExtension extension)

Parameters

p IPoint
extension esriSegmentExtension

Returns

IPoint

Remarks

 

ReturnNearestPoint Example

ReturnTurnDirection(ISegment)

Finds turn direction between two connected segments.

virtual int ReturnTurnDirection(ISegment otherSegment)

Parameters

otherSegment ISegment

Returns

int

Remarks

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

ReturnTurnDirection Example

ReverseOrientation()

virtual void ReverseOrientation()

Rotate(IPoint, double)

Rotates about the specified origin point. The angle is in radians. The origin can be in a different spatial reference than the geometry being rotated.

virtual void Rotate(IPoint Origin, double rotationAngle)

Parameters

Origin IPoint
rotationAngle double

Remarks

An Envelope cannot be Rotated.

Transform2D Rotate Example

Scale(IPoint, double, double)

Scales about the specified origin using seperate horizonal and vertical scales. The origin point can be in a different spatial reference than the geometry being scaled.

virtual void Scale(IPoint Origin, double sx, double sy)

Parameters

Origin IPoint
sx double
sy double

Remarks

Note: Caution must be taken when scaling a CircularArc or a geometry containing CircularArc segments.  Unless Abs(ScaleX) = Abs(ScaleY), the resulting CircularArcs will not retain the characteristics of the original geometry (since they remain CircularArcs).

Scale Example

[C#]

            //Create Point you wish to scale
            IPoint startingPoint = new PointClass() as IPoint;
            startingPoint.PutCoords(10, 10);
            //Create a point to act as origin
            IPoint origin = new PointClass() as IPoint;
            origin.PutCoords(15, 15);
            //Cast the startingPoint into the correct Interface
            ITransform2D transformScalePoint = startingPoint as ITransform2D;
            //Perform Scale
            transformScalePoint.Scale(origin, .5, .5);
            double x;
            double y;
            startingPoint.QueryCoords(out x, out y);
            Debug.Print(x.ToString());
            Debug.Print(y.ToString());













SetEmpty()

virtual void SetEmpty()

SetIDs(int, int)

Set the IDs on the segment's endpoints.

virtual void SetIDs(int fromID, int toID)

Parameters

fromID int
toID int

SetMs(double, double)

Set the Ms on the segment's endpoints.

virtual void SetMs(double fromM, double toM)

Parameters

fromM double
toM double

SetZs(double, double)

Set the Zs on the segment's endpoints.

virtual void SetZs(double fromZ, double toZ)

Parameters

fromZ double
toZ double

SnapToSpatialReference()

virtual void SnapToSpatialReference()

SpatialReference

virtual ISpatialReference SpatialReference { get; set; }

Returns

ISpatialReference

SplitAtDistance(double, bool, out ISegment, out ISegment)

Split segment at specified distance.

virtual void SplitAtDistance(double distances, bool asRatio, out ISegment fromSegment, out ISegment toSegment)

Parameters

distances double
asRatio bool
fromSegment ISegment
toSegment ISegment

Remarks

 

SplitAtDistance Example

SplitAtVertexAttribute(esriGeometryAttributes, double, out ISegment, out ISegment)

Splits the segment in two segments at the location corresponding to the attribute value.

virtual void SplitAtVertexAttribute(esriGeometryAttributes attributeType, double attributeValue, out ISegment fromSegment, out ISegment toSegment)

Parameters

attributeType esriGeometryAttributes
attributeValue double
fromSegment ISegment
toSegment ISegment

SplitDivideLength(double, double, bool, ref int, ref ISegment)

Divide segment into smaller segments of the specified length.

virtual void SplitDivideLength(double Offset, double Length, bool asRatio, ref int numSplitSegments, ref ISegment splitSegments)

Parameters

Offset double
Length double
asRatio bool
numSplitSegments int
splitSegments ISegment

Remarks

 

SplitDivideLength Example

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

SynchronizeEmptyAttributes(ISegment)

Synchronize Empty Attributes.

virtual void SynchronizeEmptyAttributes(ISegment toSegment)

Parameters

toSegment ISegment

ToAngle

The angle, measured from a horizontal line through this circular arc's center point, that defines where this arc ends.

virtual double ToAngle { get; set; }

Returns

double

Remarks

 

CircularArc ToAngle Example

ToPoint

virtual IPoint ToPoint { get; set; }

Returns

IPoint

Transform(esriTransformDirection, ITransformation)

Applies an arbitrary transformation. In particular, the transformation parameter can be either an affine transformation or a geographic transformation (datum shift).

virtual void Transform(esriTransformDirection Direction, ITransformation Transformation)

Parameters

Direction esriTransformDirection
Transformation ITransformation

VertexAttributeAware[esriGeometryAttributes]

Indicates if the segment is aware of the specified attribute type.

virtual bool VertexAttributeAware[esriGeometryAttributes attributeType] { get; set; }

Parameters

attributeType esriGeometryAttributes

Returns

bool

VertexAttributeOn(esriGeometryAttributes, double)

Indicates if attributeValue is located on this segment.

virtual int VertexAttributeOn(esriGeometryAttributes attributeType, double attributeValue)

Parameters

attributeType esriGeometryAttributes
attributeValue double

Returns

int