ArcObjects Library Reference (Geometry)  

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 VARIANT_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 | IConstructCircularArc.ConstructCircle Method | ISegmentCollection.SetCircle Method