AGI STK Util 11 Send comments on this topic.
ConvertTo Method (IAgOrbitState)
See Also  Example
Type





Description

Method to changes the coordinate type to the type specified.

Syntax

[Visual Basic .NET]
Public Function ConvertTo( _
   ByVal Type As AgEOrbitStateType _
) As IAgOrbitState

[C#]
public IAgOrbitState ConvertTo(
AgEOrbitStateType Type
);

[Managed C++]
public: IAgOrbitState^ ConvertTo(
AgEOrbitStateType Type
);

[Java]
public IAgOrbitState convertTo(
AgEOrbitStateType Type
);

[Unmanaged C++]
public: HRESULT ConvertTo(
AgEOrbitStateType Type,
IAgOrbitState ** ReturnValue
);

Parameters

Type
Member Value Description
eOrbitStateCartesian 0 Cartesian coordinate type.
eOrbitStateClassical 1 Classical (Keplerian) coordinate type.
eOrbitStateEquinoctial 2 Equinoctial coordinate type.
eOrbitStateDelaunay 3 Delaunay variables coordinate type.
eOrbitStateSpherical 4 Spherical coordinate type.
eOrbitStateMixedSpherical 5 Mixed spherical coordinate type.
eOrbitStateGeodetic 6 Geodetic coordinate type.

Example

Convert an orbit state to another representation or coordinate system X
[C#] Copy Code
IAgOrbitStateClassical newOrbit = orbit.ConvertTo(AgEOrbitStateType.eOrbitStateClassical) as IAgOrbitStateClassical; 
 

Convert an orbit state to another representation or coordinate system X
[Visual Basic .NET] Copy Code
Dim newOrbit As IAgOrbitStateClassical = TryCast(orbit.ConvertTo(AgEOrbitStateType.eOrbitStateClassical), IAgOrbitStateClassical)

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1