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






Windows & Linux

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
MemberValueDescription
eOrbitStateCartesian0Cartesian coordinate type.
eOrbitStateClassical1Classical (Keplerian) coordinate type.
eOrbitStateEquinoctial2Equinoctial coordinate type.
eOrbitStateDelaunay3Delaunay variables coordinate type.
eOrbitStateSpherical4Spherical coordinate type.
eOrbitStateMixedSpherical5Mixed spherical coordinate type.
eOrbitStateGeodetic6Geodetic 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

© 2018 Analytical Graphics, Inc. All Rights Reserved.