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


IConstructCircularArc.ConstructEndPointsRadius Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IConstructCircularArc.ConstructEndPointsRadius Method

Constructs an arc from the given endpoints and radius.

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

Parameters from
from is a parameter of type IPoint to
to is a parameter of type IPoint isCCW isCCW is a parameter of type VARIANT_BOOL inRadius inRadius is a parameter of type double IsMinor IsMinor is a parameter of type VARIANT_BOOL

Product Availability

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

Description

Constructs a CircularArc given the From Point, To Point, the desired Radius, IsCounterClockwise direction, and IsMinor value.

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

 

See Also

IConstructCircularArc Interface | IConstructCircularArc.ConstructEndPointsArc Method | IConstructCircularArc.ConstructEndPointsAngle Method | IConstructCircularArc.ConstructEndPointsChordHeight Method | IConstructCircularArc.ConstructEndPointsRadius Method | IConstructCircularArc.ConstructEndPointsTangent Method | IConstructCircularArc.ConstructThreePoints Method