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


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

IConstructCircularArc.ConstructCircle Method

Constructs a circle of a given radius and orientation.

[Visual Basic .NET]
Public Sub ConstructCircle ( _
    ByVal CenterPoint As IPoint, _
    ByVal Radius As Double, _
    ByVal isCCW As Boolean _
)
[C#]
public void ConstructCircle (
    IPoint CenterPoint,
    double Radius,
    bool isCCW
);
[C++]
HRESULT ConstructCircle(
  IPoint* CenterPoint,
  double Radius,
  VARIANT_BOOL isCCW
);
[C++]
Parameters
CenterPoint 

CenterPoint is a parameter of type IPoint* Radius
Radius is a parameter of type double isCCW
isCCW is a parameter of type bool

Product Availability

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

Description

Constructs a complete circle given the Center Point, the Radius of the circle, and the desired Orientation.  The From and To Points are located on the YMax point of the CircularArc.

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

See Also

IConstructCircularArc Interface | ISegmentCollection.SetCircle Method | IConstructCircularArc.ConstructCircle Method