STK UtilSend comments on this topic.
IAgPosition Interface

Description

IAgPosition provides access to the position of the object

Public Methods

Public Method AssignThis assigns the coordinates into the system.
Public Method AssignCartesianHelper method to assign the position using the Cartesian representation
Public Method AssignCylindricalHelper method to assign the position using the Cylindrical representation
Public Method AssignGeocentricHelper method to assign the position using the Geocentric representation.
Public Method AssignGeodeticHelper method to assign the position using the Geodetic representation.
Public Method AssignPlanetocentricHelper method to assign the position using the Planetocentric representation
Public Method AssignPlanetodeticHelper method to assign the position using the Planetodetic representation
Public Method AssignSphericalHelper method to assign the position using the Spherical representation
Public Method ConvertToChanges the position coordinates to type specified.
Public Method QueryCartesianHelper method to get the position using the Cartesian representation
Public Method QueryCartesianArrayThis 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 QueryCylindricalHelper method to get the position using the Cylindrical representation
Public Method QueryCylindricalArrayThis 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 QueryPlanetocentricHelper method to get the position using the Planetocentric representation
Public Method QueryPlanetocentricArrayThis 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 QueryPlanetodeticHelper method to get the position using the Planetodetic representation
Public Method QueryPlanetodeticArrayThis 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 QuerySphericalHelper method to get the position using the Spherical representation
Public Method QuerySphericalArrayThis 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 CentralBodyNameGets the central body.
Public Property PosTypeGets the type of position currently being used.

Interfaces

Implemented Interface
IAgLocationData

CoClasses that Implement IAgPosition

Example

Change a target position
[C#]
IAgPosition pos = target.Position;
pos.AssignGeodetic(39.95, 15.58, 231.54);
Change a target position
[Visual Basic .NET]
Dim pos As IAgPosition = target.Position
pos.AssignGeodetic(39.95, 15.58, 231.54)
© 2024 Analytical Graphics, Inc. All Rights Reserved.