AGI STK Util 11 Send comments on this topic.
ConvertTo Method (IAgPosition)
See Also 
Type
The type to convert to.





Description

Changes the position coordinates to type specified.

Syntax

[Visual Basic .NET]
Public Function ConvertTo( _
   ByVal Type As AgEPositionType _
) As IAgPosition

[C#]
public IAgPosition ConvertTo(
AgEPositionType Type
);

[Managed C++]
public: IAgPosition^ ConvertTo(
AgEPositionType Type
);

[Java]
public IAgPosition convertTo(
AgEPositionType Type
);

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

Parameters

Type
Member Value Description
eCartesian 0 Cartesian: position specified in terms of the X, Y and Z components of the object's position vector, where the Z-axis points to the North pole, and the X-axis crosses 0 degrees latitude/0 degrees longitude.
eCylindrical 1 Cylindrical: position specified in terms of radius (polar), longitude (measured in degrees from -360.0 degrees to +360.0 degrees), and the Z component of the object's position vector.
eGeocentric 2 Geocentric: position specified in terms of latitude (spherical latitude of the sub-point on the surface of the Earth), longitude and altitude.
eGeodetic 3 Geodetic: position specified in terms of latitude (angle between the normal to the reference ellipsoid and the equatorial plane), longitude and altitude.
eSpherical 4 Spherical: position specified in terms of latitude (spherical latitude of the sub-point on the surface of the Earth), longitude and radius (distance of the object from the center of the Earth).
ePlanetocentric 5 Planetocentric: position specified in terms of latitude (spherical latitude of the sub-point on the surface of the Earth), longitude and altitude.
ePlanetodetic 6 Planetodetic: position specified in terms of latitude (angle between the normal to the reference ellipsoid and the equatorial plane), longitude and altitude.
The type to convert to.

Return Type

IAgPosition Type

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1