AGI STK Util 11 Send comments on this topic.
IAgPosition Interface





Description

IAgPosition provides access to the position of the object

Public Methods

Public Method Assign This assigns the coordinates into the system.
Public Method AssignCartesian Helper method to assign the position using the Cartesian representation
Public Method AssignCylindrical Helper method to assign the position using the Cylindrical representation
Public Method AssignGeocentric Helper method to assign the position using the Geocentric representation.
Public Method AssignGeodetic Helper method to assign the position using the Geodetic representation.
Public Method AssignPlanetocentric Helper method to assign the position using the Planetocentric representation
Public Method AssignPlanetodetic Helper method to assign the position using the Planetodetic representation
Public Method AssignSpherical Helper method to assign the position using the Spherical representation
Public Method ConvertTo Changes the position coordinates to type specified.
Public Method QueryCartesian Helper method to get the position using the Cartesian representation
Public Method QueryCartesianArray This method is similar to QueryCartesian but can be used by earlybound(c#, vb.net...) and latebound(scripting languages) clients. The array returns the values in the order X(index 0), Y(index 1) and Z(index 2).
Public Method QueryCylindrical Helper method to get the position using the Cylindrical representation
Public Method QueryCylindricalArray This method is similar to QueryCylindrical but can be used by earlybound(c#, vb.net...) and latebound(scripting languages) clients. The array returns the values in the order Radius(index 0), Lon(index 1) and Z(index 2).
Public Method QueryPlanetocentric Helper method to get the position using the Planetocentric representation
Public Method QueryPlanetocentricArray This method is similar to QueryPlanetocentric but can be used by earlybound(c#, vb.net...) and latebound(scripting languages) clients. The array returns the values in the order Latitude(index 0), Longitude(index 1) and Altitude(index 2).
Public Method QueryPlanetodetic Helper method to get the position using the Planetodetic representation
Public Method QueryPlanetodeticArray This method is similar to QueryPlanetodetic but can be used by earlybound(c#, vb.net...) and latebound(scripting languages) clients. The array returns the values in the order Latitude(index 0), Longitude(index 1) and Altitude(index 2).
Public Method QuerySpherical Helper method to get the position using the Spherical representation
Public Method QuerySphericalArray This method is similar to QuerySpherical but can be used by earlybound(c#, vb.net...) and latebound(scripting languages) clients. The array returns the values in the order Latitude(index 0), Longitude(index 1) and Radius(index 2).

Public Properties

Public Property CentralBodyName Gets the central body.
Public Property PosType Gets the type of position currently being used.

Example

Change a target position
[C#] Copy Code
IAgPosition pos = target.Position; 
pos.AssignGeodetic(39.9515.58231.54); 
 

Change a target position
[Visual Basic .NET] Copy Code
Dim pos As IAgPosition = target.Position
pos.AssignGeodetic(39.95, 15.58, 231.54)

CoClasses that Implement IAgPosition

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1