AGI STK Graphics 11 Send comments on this topic.
ComputeEllipse 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 order x, y, z), in the centralBody's fixed reference frame.
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.





Description

Computes boundary positions for an ellipse on the specified centralBody This is equivalent to calling Compute Ellipse with a granularity of 1 degree.

Syntax

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

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

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

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

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

Parameters

CentralBody
The central body to compute the ellipse on.
Center
An array containing the center of the ellipse (in the order x, y, z), in the centralBody's fixed reference frame.
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.

Example

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

    1639.46
    -7123.95
    5861.21 
}; 
 
IAgStkGraphicsSurfaceShapesResult shape = sceneManager.Initializers.SurfaceShapes.ComputeEllipse( 
    "Earth"
    ref center, 
    45000
    30000
    45); 
 

Shows the format of the Center parameter when computing an ellipse.
[Visual Basic .NET] Copy Code
Dim center As Array = New Object() {1639.46, -7123.95, 5861.21}

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

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1