AGI AgAsHpopPlugin 6 Send comments on this topic.
SunPosition_Array Method (IAgAsHpopPluginResultEval)
See Also 
SunPosType
Method for computing the position of the sun
Frame
Requested frame to express the results
Windows








Description

Position of the sun in meters wrt the current satellite position, in the requested frame, computed in the requested manner, returned as an array representing x, y, z. Useful for scripting clients.

Syntax

[Visual Basic .NET]
Public Function SunPosition_Array( _
   ByVal SunPosType As AgEUtSunPosType, _
   ByVal Frame As AgEUtFrame _
) As System.Array

[C#]
public System.Array SunPosition_Array(
AgEUtSunPosType SunPosType,
AgEUtFrame Frame
);

[Managed C++]
public: System::Array SunPosition_Array(
AgEUtSunPosType SunPosType,
AgEUtFrame Frame
);

[Unmanaged C++]
public: HRESULT SunPosition_Array(
AgEUtSunPosType SunPosType,
AgEUtFrame Frame,
SAFEARRAY ** Array
);

[VBScript]
'Function object.SunPosition_Array(...)  returns an array
' SunPosType is type AgEUtSunPosType (an integer)
' Frame is type AgEUtFrame (an integer)
result = object.SunPosition_Array(SunPosType, Frame)

[Perl]
$return_value = $objectReference->SunPosition_Array(# $return_value is an array reference
$SunPosType, # type AgEUtSunPosType (scalar integer)
$Frame# type AgEUtFrame (scalar integer)
);

Parameters

SunPosType
Member Value Description
eUtSunPosTypeApparentToTrueCB 0  
eUtSunPosTypeApparent 1  
eUtSunPosTypeTrue 2  
eUtSunPosTypeSRP 3  
Method for computing the position of the sun
Frame
Member Value Description
eUtFrameInertial 0  
eUtFrameFixed 1  
eUtFrameLVLH 2  
eUtFrameNTC 3  
eUtFrameICRF 4  
eUtFrameJ2000 5  
Requested frame to express the results

Return Type

An array containing the current position of the sun in the requested frame

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

ODTK 6.5