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


IEllipticArc.QueryCoords Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IEllipticArc.QueryCoords Method

Copies the center and endpoints, angle of rotation, orientation and major/minor properties into the method parameters.

[Visual Basic .NET]
Public Sub QueryCoords ( _
    ByVal ellipseStd As Boolean, _
    ByVal Center As IPoint, _
    ByVal from As IPoint, _
    ByVal to As IPoint, _
    ByRef rotationAngle As Double, _
    ByRef minorMajorRatio As Double, _
    ByRef isCCW As Boolean, _
    ByRef minor As Boolean _
)
[C#]
public void QueryCoords (
    bool ellipseStd,
    IPoint Center,
    IPoint from,
    IPoint to,
    ref double rotationAngle,
    ref double minorMajorRatio,
    ref bool isCCW,
    ref bool minor
);
[C++]
HRESULT QueryCoords(
  VARIANT_BOOL ellipseStd,
  IPoint* Center,
  IPoint* from,
  IPoint* to,
  double* rotationAngle,
  double* minorMajorRatio,
  VARIANT_BOOL* isCCW,
  VARIANT_BOOL* minor
);
[C++]

Parameters ellipseStd ellipseStd is a parameter of type VARIANT_BOOL Center
Center is a parameter of type IPoint from
from is a parameter of type IPoint to
to is a parameter of type IPoint rotationAngle [in, out] rotationAngle is a parameter of type double minorMajorRatio [in, out] minorMajorRatio is a parameter of type double isCCW [in, out] isCCW is a parameter of type VARIANT_BOOL minor [in, out] minor is a parameter of type VARIANT_BOOL

Product Availability

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

Description

Given the EllipseStd value, returns the Center Point, From Point, To Point, Rotation Angle, Minor Axis to Major Axis Ratio, IsCounterClockwise value, and IsMinor value of the Elliptic Arc.  If EllipseStd=TRUE, the From Point and To Point locations are relative offsets from the Center Point rather than the origin.

Remarks

These are the necessary inputs for PutCoords, except in special cases (half ellipse, full ellipse, Central Angle=0, and Minor to Major Ratio=0) where the ArcOrientation must know which of these cases exists to ensure that the desired Elliptic Arc is unambiguous. Any of the output parameters can be set to nil if that info is not desired.

-isCCW stands for "is counter clockwise"

IEllipticArc QueryCoords Example

See Also

IEllipticArc Interface | IEllipticArc.PutCoords Method