AGI AgAccessConstraintPlugin 11 Send comments on this topic.
RelativePosition Method (IAgAccessConstraintPluginObjectData)
See Also 
Type
An apparent position indicator.
Frame
Requested frame to express the results
X
The X-component of relative position in the requested frame
Y
The Y-component of relative position in the requested frame
Z
The Z-component of relative position in the requested frame
Windows






Windows & Linux

Description

The apparent relative position of the other object with respect to this object, in the requested frame. Only eUtFrameInertial and eUtFrameFixed are supported.

Syntax

[Visual Basic .NET]
Public Sub RelativePosition( _
   ByVal Type As AgEAccessApparentPositionType, _
   ByVal Frame As AgEUtFrame, _
   ByRef X As Double, _
   ByRef Y As Double, _
   ByRef Z As Double _
) 

[C#]
public void RelativePosition(
AgEAccessApparentPositionType Type,
AgEUtFrame Frame,
ref double X,
ref double Y,
ref double Z
);

[Managed C++]
public: void RelativePosition(
AgEAccessApparentPositionType Type,
AgEUtFrame Frame,
double ^ X,
double ^ Y,
double ^ Z
);

[Java]
public  relativePosition(
AgEAccessApparentPositionType Type,
AgEUtFrame Frame,
double X,
double Y,
double Z
);

[Unmanaged C++]
public: HRESULT RelativePosition(
AgEAccessApparentPositionType Type,
AgEUtFrame Frame,
double * X,
double * Y,
double * Z
);

Parameters

Type
Member Value Description
eLightPathApparentPosition 1 Light path apparent position. Accounts for the light time delay (if applied) between objects.
eRefractedApparentPosition 2 Refracted apparent position. Accounts for refraction effects (if applied) on the light path apparent position.
eProperApparentPosition 3 Proper Apparent position. Accounts for aberration effects (depending on the aberration type applied) on the refracted apparent position.
An apparent position indicator.
Frame
Member Value Description
eUtFrameInertial 0  
eUtFrameFixed 1  
eUtFrameLVLH 2  
eUtFrameNTC 3  
eUtFrameICRF 4  
eUtFrameJ2000 5  
Requested frame to express the results
X
The X-component of relative position in the requested frame
Y
The Y-component of relative position in the requested frame
Z
The Z-component of relative position in the requested frame

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface