AGI STK Graphics 11 Send comments on this topic.
ComputeEllipseCartographicWithGranularity Method (IAgStkGraphicsSurfaceShapesInitializer)
See Also  Example
CentralBody
The central body to compute the ellipse on.
Center
An array containing the center of the ellipse, in the centralBody's fixed reference frame, in the order latitude, longitude, altitude.
MajorAxisRadius
The radius of the ellipse's major axis, in meters.
MinorAxisRadius
The radius of the ellipse's minor axis, in meters.
Bearing
An angle, in radians, measured clockwise from north.
Granularity
The angular separation, in radians, of positions along the boundary.





Description

For convenience. Computes boundary positions for an ellipse on the specified centralBody using a Cartographic center. Longitude and latitude are in radians, and altitude is in meters. This is equivalent to converting center to Cartesian and calling Compute Ellipse

Syntax

[Visual Basic .NET]
Public Function ComputeEllipseCartographicWithGranularity( _
   ByVal CentralBody As String, _
   ByRef Center As System.Array, _
   ByVal MajorAxisRadius As Double, _
   ByVal MinorAxisRadius As Double, _
   ByVal Bearing As Double, _
   ByVal Granularity As Double _
) As IAgStkGraphicsSurfaceShapesResult

[C#]
public IAgStkGraphicsSurfaceShapesResult ComputeEllipseCartographicWithGranularity(
string CentralBody,
ref System.Array Center,
double MajorAxisRadius,
double MinorAxisRadius,
double Bearing,
double Granularity
);

[Managed C++]
public: IAgStkGraphicsSurfaceShapesResult^ ComputeEllipseCartographicWithGranularity(
String __gc ^ CentralBody,
System::Array ^^ Center,
double MajorAxisRadius,
double MinorAxisRadius,
double Bearing,
double Granularity
);

[Java]
public IAgStkGraphicsSurfaceShapesResult computeEllipseCartographicWithGranularity(
String CentralBody,
Object[] Center,
double MajorAxisRadius,
double MinorAxisRadius,
double Bearing,
double Granularity
);

[Unmanaged C++]
public: HRESULT ComputeEllipseCartographicWithGranularity(
BSTR CentralBody,
SAFEARRAY ** Center,
double MajorAxisRadius,
double MinorAxisRadius,
double Bearing,
double Granularity,
IAgStkGraphicsSurfaceShapesResult ** ReturnValue
);

Parameters

CentralBody
The central body to compute the ellipse on.
Center
An array containing the center of the ellipse, in the centralBody's fixed reference frame, in the order latitude, longitude, altitude.
MajorAxisRadius
The radius of the ellipse's major axis, in meters.
MinorAxisRadius
The radius of the ellipse's minor axis, in meters.
Bearing
An angle, in radians, measured clockwise from north.
Granularity
The angular separation, in radians, of positions along the boundary.

Example

Shows the format of the Center parameter when computing an ellipse with a cartographic position.
[C#] Copy Code
Array center = new object[] 

    38.85
    -77.04
    3000.0 
}; 
 
IAgStkGraphicsSurfaceShapesResult shape = sceneManager.Initializers.SurfaceShapes.ComputeEllipseCartographic( 
    "Earth"
    ref center, 
    45000
    30000
    45); 
 

Shows the format of the Center parameter when computing an ellipse with a cartographic position.
[Visual Basic .NET] Copy Code
Dim center As Array = New Object() {38.85, -77.04, 3000}

Dim shape As IAgStkGraphicsSurfaceShapesResult = sceneManager.Initializers.SurfaceShapes.ComputeEllipseCartographic("Earth", center, 45000, 30000, 45)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1