This document is archived and information here might be outdated. Recommended version. |
Constructs the inscribed ellipse of the given envelope. The ellipse is oriented counterclockwise.
[Visual Basic .NET] Public Sub ConstructEnvelope ( _ ByVal boundingEnvelope As IEnvelope _ )
[C#] public void ConstructEnvelope ( IEnvelope boundingEnvelope );
[C++]
HRESULT ConstructEnvelope(
IEnvelope* boundingEnvelope
);
[C++] Parameters boundingEnvelope
boundingEnvelope is a parameter of type IEnvelope*
ConstructEnvelope creates an EllipticArc from a given Envelope. The constructed EllipticArc is the full EllipticArc that has the given Envelope as its Envelope. The EllipticArc has a Major Axis equal to the larger of the Width and Height, and the Minor Axis equal to the smaller of the Width and Height. The CenterPoint of the EllipticArc is the CenterPoint of the Envelope.
The method ignores the Z values of the given envelope and therefore the output elliptic arc is 2D.
public IEllipticArc CreateFullEclipticArcFull(IEnvelope envelope) { IConstructEllipticArc constructEllipticArc = new EllipticArcClass(); constructEllipticArc.ConstructEnvelope(envelope); return constructEllipticArc as IEllipticArc; }
Public Function CreateEArcFull(ByVal pEnv As ESRI.ArcGIS.Geometry.IEnvelope) As ESRI.ArcGIS.Geometry.IEllipticArc
Dim pConstEArc As ESRI.ArcGIS.Geometry.IConstructEllipticArc
pConstEArc = New ESRI.ArcGIS.Geometry.EllipticArc
pConstEArc.ConstructEnvelope(pEnv)
CreateEArcFull = pConstEArc
End Function